/* Contact Page Specific Styles */

/* Contact Info Wrapper */
.contact-info-wrapper {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-wrapper:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(118, 77, 240, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(118, 77, 240, 0.3);
    box-shadow: 0 5px 20px rgba(118, 77, 240, 0.1);
}

.contact-info-icon {
    background: linear-gradient(45deg, #764DF0, #8B5CF6);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(118, 77, 240, 0.3);
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(118, 77, 240, 0.4);
}

.contact-info-content h4 {
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 18px;
}

.contact-info-content p,
.contact-info-content a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: #764DF0;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(118, 77, 240, 0.2);
}

.form-header {
    border-bottom: 2px solid rgba(118, 77, 240, 0.3);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.form-header h3 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Form Sections */
.form-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #764DF0, transparent);
    transition: left 0.5s ease;
}

.form-section:hover::before {
    left: 100%;
}

.form-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(118, 77, 240, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(118, 77, 240, 0.1);
}

.section-title {
    color: #764DF0;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(118, 77, 240, 0.3);
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.section-title i {
    color: #8B5CF6;
    margin-right: 8px;
    transition: all 0.3s ease;
}

/* Form Fields */
.field-set {
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.field-set:hover {
    transform: translateX(5px);
}

.field-set label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.form-underline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 15px 20px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 16px;
    backdrop-filter: blur(5px);
}

.form-underline:focus {
    outline: none;
    border-color: #764DF0;
    box-shadow: 0 0 0 3px rgba(118, 77, 240, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.form-underline:hover {
    border-color: rgba(118, 77, 240, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-underline::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.form-underline:focus::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Enhanced Select Dropdown Styling */
select.form-underline {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23764DF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px;
    font-weight: 500;
}

select.form-underline:focus {
    border-color: #764DF0;
    box-shadow: 0 0 0 3px rgba(118, 77, 240, 0.2);
    background-color: #2a2a2a !important;
}

/* Select Options Styling - Fixed Contrast Issues */
select.form-underline option {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    font-weight: 500;
    line-height: 1.4;
    margin: 2px 0;
    border-radius: 4px;
}

select.form-underline option:hover,
select.form-underline option:focus,
select.form-underline option:selected {
    background-color: #764DF0 !important;
    color: #ffffff !important;
    font-weight: 600;
    cursor: pointer;
}

/* Specific Select Field Styling */
select#id_subject,
select#id_service {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

select#id_subject option,
select#id_service option {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

select#id_subject option:hover,
select#id_subject option:focus,
select#id_subject option:selected,
select#id_service option:hover,
select#id_service option:focus,
select#id_service option:selected {
    background-color: #764DF0 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Textarea specific styling */
.form-underline.h-100px {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Form Help Text */
.form-help-text {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    transition: all 0.3s ease;
}

.field-set:hover .form-help-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Error styling */
.text-danger {
    color: #ff6b6b !important;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    animation: fadeIn 0.3s ease;
    font-weight: 500;
}

.is-invalid {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Success and Error message styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    margin-top: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border-left: 4px solid #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.alert-danger {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border-left: 4px solid #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
    border-left: 4px solid #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Button styling */
.btn-main {
    background: linear-gradient(45deg, #764DF0, #8B5CF6);
    border: none;
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(118, 77, 240, 0.3);
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(118, 77, 240, 0.4);
    background: linear-gradient(45deg, #8B5CF6, #764DF0);
}

.btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-lg {
    padding: 20px 60px;
    font-size: 18px;
}

/* Loading spinner */
.fa-spinner {
    margin-right: 8px;
}

/* Form Submit Section */
.form-submit-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.form-submit-section:hover {
    border-top-color: rgba(118, 77, 240, 0.3);
}

/* Field Focus Animation */
.field-focused .form-label {
    color: #764DF0;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .contact-info-wrapper {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .contact-info-item {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .contact-info-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }
    
    .form-underline {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .btn-main {
        width: 100%;
        padding: 18px 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 25px 15px;
    }
    
    .contact-info-wrapper {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .btn-main {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form validation visual feedback */
.form-underline:valid {
    border-color: rgba(76, 175, 80, 0.5);
}

.form-underline:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

/* Focus states for accessibility */
.form-underline:focus-visible {
    outline: 2px solid #764DF0;
    outline-offset: 2px;
}

/* Loading state for form submission */
.form-submitting .form-underline {
    opacity: 0.7;
    pointer-events: none;
}

.form-submitting .btn-main {
    pointer-events: none;
}

/* Context Banner Styling */
#context-banner {
    background: rgba(118, 77, 240, 0.1);
    border: 1px solid rgba(118, 77, 240, 0.3);
    color: #8B5CF6;
    animation: slideInFromLeft 0.5s ease;
}

#context-banner strong {
    color: #764DF0;
}

/* Utility Classes */
.text-light-70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-light-60 {
    color: rgba(255, 255, 255, 0.6);
}

/* Hover Effects for Form Sections */
.form-section:hover .section-title {
    color: #8B5CF6;
}

.form-section:hover .section-title i {
    color: #764DF0;
}

/* Enhanced Dropdown Arrow Styling */
select.form-underline {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23764DF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px;
}

/* Focus and Active States */
select.form-underline:focus,
select.form-underline:active {
    background-color: #2a2a2a !important;
    border-color: #764DF0;
    box-shadow: 0 0 0 3px rgba(118, 77, 240, 0.2);
}

/* Hover State for Select Field */
select.form-underline:hover {
    background-color: #2a2a2a !important;
    border-color: rgba(118, 77, 240, 0.5);
}

/* Dropdown Options Styling for Better Visibility */
select.form-underline option {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    font-weight: 500;
    line-height: 1.4;
}

select.form-underline option:hover {
    background-color: #764DF0 !important;
    color: #ffffff !important;
    font-weight: 600;
}

select.form-underline option:checked,
select.form-underline option:selected {
    background-color: #764DF0 !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* Ensure dropdown is visible on all browsers */
select.form-underline {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Firefox specific styling */
@-moz-document url-prefix() {
    select.form-underline {
        background-color: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    select.form-underline option {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
    }
    
    select.form-underline option:hover,
    select.form-underline option:focus,
    select.form-underline option:selected {
        background-color: #764DF0 !important;
        color: #ffffff !important;
    }
}



/* Internet Explorer */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    select.form-underline {
        background-color: #1a1a1a !important;
        color: #ffffff !important;
    }
    
    select.form-underline option {
        background-color: #2a2a2a !important;
        color: #ffffff !important;
    }
    
    select.form-underline option:hover,
    select.form-underline option:focus,
    select.form-underline option:selected {
        background-color: #764DF0 !important;
        color: #ffffff !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    select.form-underline {
        border: 2px solid #ffffff;
        background-color: #000000 !important;
        color: #ffffff !important;
    }
    
    select.form-underline option {
        background-color: #000000 !important;
        color: #ffffff !important;
        border: 1px solid #ffffff;
    }
    
    select.form-underline option:hover,
    select.form-underline option:focus,
    select.form-underline option:selected {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar for Textarea */
.form-underline.h-100px::-webkit-scrollbar {
    width: 8px;
}

.form-underline.h-100px::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.form-underline.h-100px::-webkit-scrollbar-thumb {
    background: rgba(118, 77, 240, 0.5);
    border-radius: 4px;
}

.form-underline.h-100px::-webkit-scrollbar-thumb:hover {
    background: rgba(118, 77, 240, 0.7);
}

/* Enhanced Form Field Animations */
.field-set {
    animation: slideInFromRight 0.5s ease;
}

.field-set:nth-child(1) { animation-delay: 0.1s; }
.field-set:nth-child(2) { animation-delay: 0.2s; }
.field-set:nth-child(3) { animation-delay: 0.3s; }
.field-set:nth-child(4) { animation-delay: 0.4s; }

/* Form Section Entrance Animations */
.form-section {
    animation: slideInFromLeft 0.6s ease;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }

/* Enhanced Button Hover Effects */
.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Form Field Focus Enhancement */
.field-set:focus-within {
    transform: translateX(5px);
}

.field-set:focus-within .form-label {
    color: #764DF0;
    transform: translateY(-2px);
}

/* Contact Info Item Hover Enhancement */
.contact-info-item:hover .contact-info-content h4 {
    color: #764DF0;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .contact-info-item:hover {
        transform: translateY(-5px);
    }
    
    .form-section:hover {
        transform: translateY(-2px);
    }
}

/* Loading State Enhancements */
.btn-main:disabled {
    background: linear-gradient(45deg, #666, #888);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Validation Visual Enhancement */
.form-underline.is-valid {
    border-color: rgba(76, 175, 80, 0.7);
    background: rgba(76, 175, 80, 0.05);
}

.form-underline.is-invalid {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
