select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230047BB' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

select:focus {
    outline: none;
    border-color: #0047BB;
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.1);
}

select:hover {
    border-color: #0047BB;
}

select option {
    padding: 12px;
    font-size: 15px;
}

.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.form-modal {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

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

.form-modal h2 {
    color: #0047BB;
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 700;
}

.form-modal p {
    margin-bottom: 20px;
    color: #666;
    font-size: 15px;
}

.form-modal p strong {
    color: #0047BB;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #0047BB;
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

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

#cardTypeDisplay {
    margin-top: 5px;
    font-weight: 600;
    font-size: 14px;
}

.error-message {
    background: #FFEBEE;
    color: #C62828;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #C62828;
    font-size: 14px;
    font-weight: 500;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-submit-card {
    width: 100%;
    background: #8B2E8F;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit-card:hover {
    background: #6D2370;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 46, 143, 0.3);
}

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

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 71, 187, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.loader-content {
    text-align: center;
    color: white;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-content p {
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .form-modal {
        padding: 30px 20px;
        width: 95%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-submit {
    padding: 14px 64px;
    border: 1px solid #D0D0D0;
    border-radius: 24px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    display: block;
    margin: 32px auto 0;
}