/* Online Payment Form Styling */

.bold {
    font-weight: 700;
}

.payment-section {
    padding: 4rem 1rem;
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-container {
    width: 100%;
    max-width: 600px;
}

.payment-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    margin-top: 0;
}

.form-subtitle {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-left: 0.25rem;
}

.required {
    color: #ef4444;
}

.form-input, 
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus, 
.form-select:focus {
    background-color: #ffffff;
    border-color: #3993d0;
    box-shadow: 0 0 0 4px rgba(57, 147, 208, 0.15);
}

/* Input Prefix ($) */
.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix-icon {
    position: absolute;
    left: 1rem;
    color: #64748b;
    font-weight: 600;
    pointer-events: none;
}

.input-prefix-wrapper .form-input {
    padding-left: 2.25rem;
}

/* Custom Select Styling */
.select-wrapper {
    position: relative;
}

.form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

/* Button Styling */
.btn-submit {
    margin-top: 1rem;
    background-color: #f79431;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(247, 148, 49, 0.2), 0 2px 4px -1px rgba(247, 148, 49, 0.1);
}

.btn-submit:hover {
    background-color: #e68522;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(247, 148, 49, 0.3), 0 4px 6px -2px rgba(247, 148, 49, 0.1);
    text-decoration: none;  
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Trust Badge */
.payment-trust {
    margin-top: 1.5rem;
    text-align: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
}

.trust-icon {
    width: 1rem;
    height: 1rem;
    color: #10b981;
}

/* Error Message */
.input-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Result Card Specifics */
.result-card {
    text-align: center;
    padding: 3.5rem 2.5rem;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-icon.success {
    background-color: #ecfdf5;
    color: #10b981;
}

.result-icon.cancelled {
    background-color: #fff7ed;
    color: #f79431;
}

.result-icon svg {
    width: 100%;
    height: 100%;
}

.result-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.btn-icon.back {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon.back {
    transform: translateX(-4px);
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .payment-card {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .result-card {
        padding: 2.5rem 1.5rem;
    }

    .result-icon {
        width: 64px;
        height: 64px;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}
