/* ========================================
   Payment Page Styles
   ======================================== */

/* ========== Breadcrumb ========== */
.breadcrumb {
    margin-top: var(--header-height);
    padding: var(--spacing-md) 0;
    background-color: var(--color-light);
    border-bottom: 1px solid #D1D5DB;
}

.breadcrumb__content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--fs-small);
    color: var(--color-medium);
}

.breadcrumb__content a {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb__content a:hover {
    text-decoration: underline;
}

.breadcrumb__content i {
    font-size: 0.625rem;
}

/* ========== Payment Header ========== */
.payment__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.payment__title {
    margin-bottom: var(--spacing-sm);
}

.payment__subtitle {
    font-size: var(--fs-h4);
    color: var(--color-medium);
    font-weight: 400;
}

/* ========== Security Badges ========== */
.security__badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.security__badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-weight: 600;
    font-size: var(--fs-small);
}

.security__badge i {
    font-size: 1.25rem;
}

/* ========== Payment Container ========== */
.payment__container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* ========== Info Sidebar ========== */
.payment__info {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-md));
}

.info__card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.info__card h3 {
    font-size: var(--fs-h4);
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.info__card h3 i {
    color: var(--color-primary);
}

.info__card p {
    color: var(--color-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.info__card p:last-child {
    margin-bottom: 0;
}

.info__phone,
.info__email {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--fs-h4);
    margin: var(--spacing-sm) 0;
}

.info__phone:hover,
.info__email:hover {
    text-decoration: underline;
}

.info__hours {
    font-size: var(--fs-small);
    margin-top: var(--spacing-sm) !important;
}

.info__card--security {
    background: linear-gradient(135deg, rgba(217, 118, 56, 0.1), rgba(139, 69, 19, 0.1));
    border: 2px solid var(--color-primary);
    text-align: center;
}

.info__icon--large {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.info__small {
    font-size: var(--fs-small);
}

/* ========== Payment Form ========== */
.payment__form-wrapper {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form__section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--color-light);
}

.form__section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-lg);
}

.form__section-title {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-lg);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.form__section-title i {
    color: var(--color-primary);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form__row:last-child {
    margin-bottom: 0;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
    font-size: var(--fs-small);
}

.form__input,
.form__select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #D1D5DB;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    transition: var(--transition);
    background-color: var(--color-white);
}

.form__input:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(217, 118, 56, 0.1);
}

.form__input.error {
    border-color: var(--color-error);
}

.form__textarea {
    resize: vertical;
    min-height: 80px;
}

.form__help {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--color-medium);
}

.form__error {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--color-error);
}

/* ========== Card Icons ========== */
.card__icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.card__icons i {
    font-size: 2rem;
    color: var(--color-medium);
}

/* ========== Expiry Inputs ========== */
.expiry__inputs {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.expiry__inputs .form__input,
.expiry__inputs .form__select {
    flex: 1;
}

.expiry__separator {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-medium);
}

/* ========== Form Actions ========== */
.form__actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.button--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ========== Payment Message ========== */
.payment__message {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.payment__message.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--color-success);
    border: 2px solid var(--color-success);
}

.payment__message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--color-error);
    border: 2px solid var(--color-error);
}

.payment__message.info {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--color-info);
    border: 2px solid var(--color-info);
}

/* ========== Payment Footer ========== */
.payment__footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-light);
}

.payment__footer p {
    color: var(--color-medium);
    font-size: var(--fs-small);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.payment__footer i {
    color: var(--color-primary);
}

/* ========== Loading State ========== */
.button--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.button--loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid var(--color-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* ========== Responsive Design ========== */

/* Tablet */
@media screen and (max-width: 1024px) {
    .payment__container {
        grid-template-columns: 1fr;
    }
    
    .payment__info {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .info__card--security {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .security__badges {
        flex-direction: column;
        align-items: center;
    }
    
    .payment__info {
        grid-template-columns: 1fr;
    }
    
    .payment__form-wrapper {
        padding: var(--spacing-lg);
    }
    
    .form__row {
        grid-template-columns: 1fr;
    }
    
    .form__group--full {
        grid-column: 1;
    }
    
    .form__actions {
        flex-direction: column;
    }
    
    .button--large {
        width: 100%;
        justify-content: center;
    }
    
    .expiry__inputs {
        gap: var(--spacing-xs);
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .breadcrumb__content {
        font-size: 0.75rem;
    }
    
    .payment__header {
        text-align: left;
    }
    
    .payment__form-wrapper {
        padding: var(--spacing-md);
    }
    
    .form__section-title {
        font-size: var(--fs-h4);
    }
}