/* YC247 Form Styles - Sky Blue Educational Theme */
.yc247-form-container {
    max-width: 620px;
    margin: 0 auto;
    padding: 45px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdff 50%, #f0f9ff 100%);
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(135, 206, 235, 0.15),
        0 4px 20px rgba(135, 206, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid #e1f5fe;
    position: relative;
    overflow: hidden;
}

.yc247-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #87CEEB, #4FC3F7, #29B6F6, #03A9F4);
    border-radius: 20px 20px 0 0;
}

/* Increased height and padding for grade level dropdown */
#yc247-grade {
    width: 100%;
    min-height: 60px !important; /* Increased height */
    padding: 18px 20px !important; /* Increased padding */
    border: 2px solid #E1F5FE !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Inter', sans-serif !important;
    color: #37474F !important;
    box-shadow: 
        0 2px 8px rgba(135, 206, 235, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2342A5F5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 18px !important;
    padding-right: 60px !important;
    line-height: 1.5 !important;
}

/* Make placeholder clearly visible */
#yc247-grade option[value=""][disabled] {
    color: #90A4AE !important;
    font-style: italic;
    font-size: 16px;
}

/* Regular input fields */
.yc247-form-input,
.yc247-form-textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #E1F5FE;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Inter', sans-serif;
    color: #37474F;
    box-shadow: 
        0 2px 8px rgba(135, 206, 235, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    min-height: 56px;
}

/* Rest of your existing CSS remains the same */
.yc247-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(135, 206, 235, 0.2);
    position: relative;
}

.yc247-form-header::after {
    content: '🎓';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    font-size: 20px;
}

.yc247-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1565C0;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(21, 101, 192, 0.1);
    background: linear-gradient(135deg, #1565C0, #42A5F5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yc247-form-subtitle {
    font-size: 18px;
    color: #546E7A;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
    background: linear-gradient(135deg, #546E7A, #78909C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yc247-form-group {
    margin-bottom: 28px;
    position: relative;
}

.yc247-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #37474F;
    font-size: 15px;
    background: linear-gradient(135deg, #37474F, #546E7A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yc247-required-label::after {
    content: " *";
    color: #E53935;
    font-weight: 700;
}

.yc247-optional-label {
    display: block;
    font-size: 12px;
    color: #78909C;
    margin-top: 6px;
    font-style: italic;
    font-weight: 500;
}

.yc247-form-input:focus,
.yc247-form-textarea:focus,
#yc247-grade:focus {
    outline: none;
    border-color: #4FC3F7;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 4px 20px rgba(79, 195, 247, 0.25),
        0 0 0 3px rgba(79, 195, 247, 0.1),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.yc247-form-input:hover,
.yc247-form-textarea:hover,
#yc247-grade:hover {
    border-color: #B3E5FC;
    box-shadow: 
        0 4px 15px rgba(135, 206, 235, 0.2),
        inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.yc247-form-input::placeholder,
.yc247-form-textarea::placeholder {
    color: #90A4AE;
    font-weight: 400;
}

.yc247-form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.yc247-phone-help {
    display: block;
    font-size: 12px;
    color: #42A5F5;
    margin-top: 6px;
    font-weight: 500;
    background: linear-gradient(135deg, #42A5F5, #29B6F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yc247-field-error {
    color: #E53935;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    display: none;
    padding: 4px 8px;
    background: rgba(229, 57, 53, 0.1);
    border-radius: 6px;
    border-left: 3px solid #E53935;
}

.yc247-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #42A5F5, #2979FF);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 58px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 6px 20px rgba(66, 165, 245, 0.4),
        0 2px 8px rgba(66, 165, 245, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.yc247-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.yc247-submit-btn:hover::before {
    left: 100%;
}

.yc247-submit-btn:hover {
    background: linear-gradient(135deg, #2979FF, #1565C0);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(41, 121, 255, 0.5),
        0 4px 15px rgba(41, 121, 255, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.yc247-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(41, 121, 255, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.yc247-submit-btn:disabled {
    background: linear-gradient(135deg, #B0BEC5, #90A4AE);
    cursor: not-allowed;
    transform: none;
    box-shadow: 
        0 2px 8px rgba(176, 190, 197, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.yc247-loading-spinner {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.yc247-spinner {
    animation: yc247-rotate 1s linear infinite;
}

.yc247-spinner .spinner_ajPY {
    transform-origin: center;
    animation: yc247-dash 1.5s ease-in-out infinite;
    stroke: white;
}

@keyframes yc247-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes yc247-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.yc247-form-message {
    padding: 18px 20px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.yc247-form-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.yc247-form-message.success {
    background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
    color: #2E7D32;
    border-color: #A5D6A7;
}

.yc247-form-message.error {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    color: #C62828;
    border-color: #EF9A9A;
}

.yc247-form-message.info {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
    border-color: #90CAF9;
}

.yc247-form-required-note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #78909C;
    font-style: italic;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(176, 190, 197, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(176, 190, 197, 0.2);
}

.yc247-required-marker {
    color: #E53935;
    font-weight: 700;
}

/* International Telephone Input Styling */
.iti {
    width: 100%;
    display: block !important;
}

.iti__selected-flag {
    padding: 0 16px !important;
    border-radius: 12px 0 0 12px !important;
    background: rgba(225, 245, 254, 0.7) !important;
    border-right: 1px solid #E1F5FE !important;
}

.iti__country-list {
    border-radius: 12px !important;
    box-shadow: 
        0 8px 25px rgba(135, 206, 235, 0.2),
        0 4px 12px rgba(135, 206, 235, 0.15) !important;
    border: 2px solid #E1F5FE !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.iti__country {
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #F5F5F5 !important;
    transition: all 0.2s ease !important;
}

.iti__country:last-child {
    border-bottom: none !important;
}

.iti__country.iti__highlight {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB) !important;
    color: #1565C0 !important;
}

.iti__flag-box {
    margin-right: 10px !important;
}

.iti__dial-code {
    color: #42A5F5 !important;
    font-weight: 600 !important;
}

/* Enhanced focus states with 3D effect */
.yc247-form-input:focus,
.yc247-form-textarea:focus,
#yc247-grade:focus,
.iti input:focus {
    outline: none;
    border-color: #29B6F6;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 
        0 6px 25px rgba(41, 182, 246, 0.3),
        0 0 0 4px rgba(41, 182, 246, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Error states */
.yc247-form-input.error,
#yc247-grade.error,
.iti input.error {
    border-color: #E53935 !important;
    background: rgba(229, 57, 53, 0.05) !important;
    box-shadow: 
        0 2px 8px rgba(229, 57, 53, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.yc247-form-input.error:focus,
#yc247-grade.error:focus,
.iti input.error:focus {
    border-color: #E53935 !important;
    box-shadow: 
        0 4px 20px rgba(229, 57, 53, 0.2),
        0 0 0 3px rgba(229, 57, 53, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .yc247-form-container {
        margin: 20px;
        padding: 35px 25px;
        border-radius: 18px;
    }
    
    .yc247-form-title {
        font-size: 28px;
    }
    
    .yc247-form-subtitle {
        font-size: 16px;
    }
    
    .yc247-form-input,
    .yc247-form-textarea {
        padding: 16px 18px;
        font-size: 16px;
        min-height: 54px;
    }
    
    #yc247-grade {
        min-height: 56px !important;
        padding: 16px 18px !important;
        font-size: 16px !important;
    }
    
    .yc247-submit-btn {
        padding: 16px 25px;
        font-size: 16px;
        min-height: 56px;
    }
    
    .yc247-form-header {
        margin-bottom: 35px;
        padding-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .yc247-form-container {
        padding: 30px 20px;
        margin: 15px;
        border-radius: 16px;
    }
    
    .yc247-form-title {
        font-size: 26px;
    }
    
    .yc247-form-group {
        margin-bottom: 24px;
    }
    
    #yc247-grade {
        min-height: 52px !important;
        padding: 14px 16px !important;
    }
}

/* Animation for form elements */
.yc247-form-group {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for form groups */
.yc247-form-group:nth-child(1) { animation-delay: 0.1s; }
.yc247-form-group:nth-child(2) { animation-delay: 0.2s; }
.yc247-form-group:nth-child(3) { animation-delay: 0.3s; }
.yc247-form-group:nth-child(4) { animation-delay: 0.4s; }
.yc247-form-group:nth-child(5) { animation-delay: 0.5s; }
.yc247-form-group:nth-child(6) { animation-delay: 0.6s; }
.yc247-form-group:nth-child(7) { animation-delay: 0.7s; }

/* Enhanced 3D corner effects */
.yc247-form-container {
    position: relative;
}

.yc247-form-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #87CEEB, #4FC3F7, #29B6F6, #03A9F4);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.1;
    filter: blur(15px);
}