/* AUTH / FORMS */
.form-success {
    background: var(--clr-success-light);
    border: 1px solid var(--clr-success);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    color: var(--clr-success);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    color: #EF4444;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Service Modal Styles */
.service-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--clr-border);
}

.service-modal-header h2 {
    font-size: 24px;
    margin: 0;
    flex: 1;
}

.service-modal-icon {
    font-size: 32px;
}

/* Water Billing View */
.billing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.billing-item {
    background: var(--clr-bg-light);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s var(--ease);
}

.billing-item:hover {
    background: var(--clr-bg-card);
    border-color: var(--clr-accent);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.billing-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.billing-info p {
    font-size: 13px;
    color: var(--clr-text-muted);
}

.billing-amount {
    text-align: right;
}

.billing-amount .amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 4px;
}

.billing-amount .status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.status-paid {
    background: var(--clr-success-light);
    color: var(--clr-success);
}

.status-pending {
    background: var(--clr-warning-light);
    color: var(--clr-warning);
}

/* Document Request Form */
.doc-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.doc-type-btn {
    padding: 12px;
    border: 2px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-bg);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s var(--ease);
    text-align: center;
}

.doc-type-btn:hover {
    border-color: var(--clr-accent);
    background: rgba(220, 38, 38, 0.05);
}

.doc-type-btn.selected {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

/* Transaction History */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--clr-bg-light);
    border-radius: 8px;
    border: 1px solid var(--clr-border);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
}

.transaction-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.transaction-info p {
    font-size: 12px;
    color: var(--clr-text-muted);
}

.transaction-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--clr-accent);
}

/* Account Settings */
.account-info {
    background: var(--clr-bg-light);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--clr-border);
}

.account-row:last-child {
    border-bottom: none;
}

.account-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-text-muted);
}

.account-value {
    font-size: 14px;
    font-weight: 600;
}

/* Support Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--clr-bg-light);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s var(--ease);
}

.faq-question {
    padding: 14px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.faq-item:hover {
    background: var(--clr-bg-card);
    border-color: var(--clr-accent);
}

.faq-toggle {
    font-size: 18px;
    transition: transform var(--ease);
}

.faq-item.expanded .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 14px 14px;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 13px;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.faq-item.expanded .faq-answer {
    display: block;
    max-height: 500px;
    padding: 12px 14px 14px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    border: 1px solid var(--clr-border);
    background: var(--clr-bg);
    color: var(--clr-text);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--clr-bg-light);
}
