/* Pumping Schedule Generator */

/* Form card */
.ps-form-card {
    max-width: 600px;
    margin: -32px auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 32px;
    position: relative;
    z-index: 1;
}

.ps-section {
    margin-bottom: 24px;
}

.ps-section:last-of-type {
    margin-bottom: 0;
}

.ps-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 16px;
}

.ps-section-icon {
    font-size: 20px;
}

/* Toggle buttons */
.ps-toggle-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ps-toggle {
    flex: 1;
    min-width: 80px;
    padding: 10px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    background: #fff;
    color: #3D2F50;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.ps-toggle:hover {
    border-color: #8B7BB8;
    background: #f5f2fa;
}

.ps-toggle.active {
    background: linear-gradient(135deg, #8B7BB8, #a594d0);
    color: #fff;
    border-color: #8B7BB8;
}

/* Time fields */
.ps-time-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ps-time-row:last-child {
    margin-bottom: 0;
}

.ps-time-field {
    flex: 1;
}

.ps-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #3D2F50;
    margin-bottom: 6px;
}

.ps-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid rgba(139,123,184,0.18);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #3D2F50;
    background: #fff;
    appearance: auto;
}

.ps-select:focus {
    outline: none;
    border-color: #8B7BB8;
    box-shadow: 0 0 0 3px rgba(139,123,184,0.12);
}

/* Generate button */
.ps-generate-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ps-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123,200,184,0.3);
}

/* Results */
.ps-results {
    animation: psFadeIn 0.3s ease;
}

@keyframes psFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ps-results-card {
    max-width: 600px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 32px;
}

.ps-results-title {
    font-size: 20px;
    font-weight: 800;
    color: #3D2F50;
    text-align: center;
    margin: 0 0 24px;
}

/* Visual Timeline */
.ps-timeline {
    margin-bottom: 24px;
}

.ps-timeline-label {
    font-size: 13px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ps-timeline-bar {
    position: relative;
    height: 40px;
    background: #f0edf5;
    border-radius: 8px;
    overflow: hidden;
}

.ps-timeline-block {
    position: absolute;
    top: 4px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.ps-timeline-block.work {
    background: rgba(139,123,184,0.15);
    color: #8B7BB8;
}

.ps-timeline-block.pump {
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    z-index: 1;
}

.ps-timeline-block.lunch {
    background: rgba(249,168,37,0.20);
    color: #e6960e;
}

.ps-timeline-block.commute {
    background: rgba(105,90,128,0.12);
    color: #695A80;
}

.ps-timeline-times {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: #695A80;
}

/* Session cards */
.ps-session-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1.5px solid rgba(123,200,184,0.20);
    border-radius: 12px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(123,200,184,0.04), rgba(123,200,184,0.01));
}

.ps-session-card:last-child {
    margin-bottom: 0;
}

.ps-session-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ps-session-info {
    flex: 1;
}

.ps-session-time {
    font-size: 16px;
    font-weight: 700;
    color: #3D2F50;
}

.ps-session-detail {
    font-size: 13px;
    color: #695A80;
    margin-top: 2px;
}

.ps-session-tip {
    font-size: 13px;
    color: #8B7BB8;
    font-style: italic;
    margin-top: 4px;
}

/* Totals */
.ps-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1.5px solid rgba(139,123,184,0.10);
}

.ps-totals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ps-total-item {
    text-align: center;
}

.ps-total-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #3D2F50;
}

.ps-total-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Pre-commute / post-commute tips */
.ps-commute-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: #f5f2fa;
    border-radius: 10px;
    font-size: 15px;
    color: #695A80;
    line-height: 1.5;
}

.ps-commute-tip-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* Info sections */
.ps-info-section {
    margin: 24px 0;
    padding: 24px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    background: #fff;
}

.ps-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 12px;
}

.ps-info-icon {
    font-size: 20px;
}

.ps-info-text {
    font-size: 16px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* Storage table */
.ps-storage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.ps-storage-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 2px solid rgba(139,123,184,0.12);
}

.ps-storage-table td {
    font-size: 15px;
    color: #3D2F50;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(139,123,184,0.06);
}

.ps-storage-table tr:last-child td {
    border-bottom: none;
}

.ps-storage-source {
    font-size: 12px;
    color: #695A80;
    margin: 8px 0 0;
    font-style: italic;
}

/* Rights grid */
.ps-rights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.ps-right-card {
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    background: #faf8ff;
}

.ps-right-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.ps-right-name {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 4px;
}

.ps-right-text {
    font-size: 13px;
    color: #695A80;
    line-height: 1.4;
    margin: 0;
}

/* States table */
.ps-states-table {
    width: 100%;
    border-collapse: collapse;
}

.ps-states-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 2px solid rgba(139,123,184,0.12);
}

.ps-states-table td {
    font-size: 15px;
    color: #3D2F50;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(139,123,184,0.06);
}

.ps-states-table tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.ps-faq {
    padding: 12px 0;
    border-bottom: 1px solid rgba(139,123,184,0.08);
}

.ps-faq:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ps-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 4px;
}

.ps-faq-a {
    font-size: 15px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* CTA grid */
.ps-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ps-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ps-cta-card:hover {
    text-decoration: none;
    border-color: #8B7BB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61,47,80,0.08);
}

.ps-cta-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.ps-cta-text {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
}

.ps-cta-desc {
    font-size: 13px;
    color: #695A80;
    margin-top: 2px;
}

/* Disclaimer */
.ps-disclaimer {
    margin: 16px 0 0;
    font-size: 12px;
    color: #695A80;
    text-align: center;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 600px) {
    .ps-form-card {
        margin: -12px 12px 20px;
        padding: 20px;
    }

    .ps-toggle {
        font-size: 13px;
        padding: 8px 8px;
        min-width: 60px;
    }

    .ps-time-row {
        flex-direction: column;
        gap: 12px;
    }

    .ps-results-card {
        margin: 0 12px 20px;
        padding: 20px;
    }

    .ps-totals-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ps-total-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .ps-total-value {
        font-size: 20px;
    }

    .ps-rights-grid {
        grid-template-columns: 1fr;
    }

    .ps-info-section {
        margin: 20px 12px;
    }

    .ps-cta-grid {
        grid-template-columns: 1fr;
    }

    .ps-disclaimer {
        margin: 16px 12px 0;
    }
}
