/* Contact Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Syne', sans-serif;
    background-image: url('../images/background-website.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 2rem 4rem;
    max-width: 1500px;
    margin: 0 auto;
}

/* Decorative Background Elements */
.contact-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(100, 181, 246, 0.1) 100%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
}

/* Main Title */
.contact-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

/* Contact Information Panel */
.contact-info-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(100, 181, 246, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-info-text {
    font-size: 1rem;
    color: #b0bec5;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.contact-info-link {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: #ffffff;
}

.social-media-list {
    list-style: none;
    margin-top: 0.5rem;
}

.social-media-list li {
    color: #b0bec5;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

/* Contact Form Panel */
.contact-form-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
}

/* Form Styles */
.contact-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: 1rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #b0bec5;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(100, 181, 246, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone Input with Country Code */
.phone-input-field {
    width: 100%;
}

/* Custom styling for intl-tel-input */
.iti {
    width: 100%;
}

.iti__country-list {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: auto;
}

.iti__country {
    padding: 8px 12px;
    color: #333;
    transition: background-color 0.3s ease;
}

.iti__country:hover {
    background-color: rgba(100, 181, 246, 0.1);
}

.iti__country.iti__active {
    background-color: rgba(100, 181, 246, 0.2);
}

.iti__flag-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.iti__selected-flag {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
    padding: 0 12px;
    transition: all 0.3s ease;
}

.iti__selected-flag:hover {
    background: rgba(255, 255, 255, 0.15);
}

.iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ffffff;
    margin-left: 6px;
}

.iti__arrow--up {
    border-top: none;
    border-bottom: 5px solid #ffffff;
}

.iti__dial-code {
    color: #ffffff;
    font-weight: 600;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/img/flags@2x.png");
    }
}

/* Remove old phone input styles */
.phone-input-group,
.country-selector,
.country-flag,
.country-code,
.phone-input {
    display: none;
}

/* Submit Button */
.submit-button {
    background: linear-gradient(135deg, #64b5f6 0%, #9c27b0 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 181, 246, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.modal-icon.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-message {
    color: #b0bec5;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-close-btn {
    background: linear-gradient(135deg, #64b5f6 0%, #9c27b0 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 181, 246, 0.3);
}

/* Button loading state */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 100px 1rem 3rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 80px 1rem 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-info-panel,
    .contact-form-panel {
        padding: 1.5rem 1rem;
    }
    
    .contact-info-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info-item {
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        gap: 0.25rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}
