/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Face Declarations */
@font-face {
    font-family: 'Mark Pro';
    src: url('../fonts/MarkPro-Book.woff2') format('woff2'),
         url('../fonts/MarkPro-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mark Pro';
    src: url('../fonts/MarkPro-Bold.woff2') format('woff2'),
         url('../fonts/MarkPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #E0F2F7, #ffffff);
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    padding: 4rem 0 0 0; /* Remove bottom padding */
    position: relative;
}

/* Ensure background image covers the bottom 60% */
.hero-section::before {
    content: '';
    position: absolute;
    bottom: -5.5rem;
    left: 0;
    right: 0;
    height: calc(60% + 5.5rem);
    background: url('../images/hero-bg.png?v=1') center bottom repeat-x;
    background-size: auto 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
}

.logo-container {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 0.2s forwards;
}

.hero-logo {
    max-width: 200px;
    height: auto;
}

/* SVG Logo styling */
.hero-logo svg,
.footer-logo-img svg {
    width: 100%;
    height: auto;
}

.footer-logo-img svg {
    fill: #ffffff;
    opacity: 0.44;
}

/* Ensure SVG logos are properly displayed */
.hero-logo,
.footer-logo-img {
    display: block;
}

.hero-logo img,
.footer-logo-img img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2.625rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.1;
    margin: 0;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 0.4s forwards;
}

.hero-subtitle {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #555555;
    margin: 0;
    background: #4AF1FF;
    color: #011F3D;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 0.6s forwards;
}

.hero-description {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #6F6F6F;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: -8rem;
    width: 100%;
    z-index: 3;
}

.hero-main-image {
    width: 70%;
    max-width: 700px;
    height: auto;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideDown 1.2s ease-out 1s forwards;
}

/* Contact Section */
.contact-section {
    background: #0F2033;
    color: #ffffff;
    padding: 10rem 0 4rem 0; /* Extra top padding for image overlap */
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1rem 0;
}

.contact-description {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 2rem 0;
    text-align: center;
    color: white;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main-content {
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    color: white;
}

.hero-section h2 {
    /* font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); */
}


/* Form container */
.form-container {
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-header p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Form styles */
.contact-form {
    padding: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-height: 5rem; /* Ensure consistent height for form groups */
}

.form-group label {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1A73E8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group select {
    cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.form-group select option {
    background: #ffffff;
    color: #333333;
}

/* Phone input styling */
.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 1000;
}

.iti__selected-flag {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.iti__selected-flag:hover {
    background: #f8f9fa;
}

.iti input[type="tel"] {
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding-left: 0.5rem;
}

.iti input[type="tel"]:focus {
    border-left: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
    background: #f8f9fa;
}

.iti__country-list {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.iti__country {
    padding: 0.5rem 0.75rem;
    transition: background-color 0.2s ease;
}

.iti__country:hover {
    background: #f8f9fa;
}

.iti__country.iti__highlight {
    background: #e3f2fd;
}

/* Hide country names and codes, show only flags */
.iti__country-name {
    display: none !important;
}

.iti__dial-code {
    color: #666666 !important;
    font-size: 13px !important;
}

.iti__country {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
    min-height: 40px;
}

.iti__flag {
    margin-right: 0 !important;
}

/* Make dropdown more compact */
.iti__country-list {
    max-height: initial;
    overflow-y: auto;
}

.iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Disable browser default validation styling */
input:invalid,
select:invalid,
textarea:invalid {
    box-shadow: none;
    outline: none;
}

input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
    box-shadow: none;
    outline: none;
}

/* Hide browser validation tooltips */
input::-webkit-validation-bubble-message,
select::-webkit-validation-bubble-message,
textarea::-webkit-validation-bubble-message {
    display: none;
}

/* Additional browser validation suppression */
input:invalid,
select:invalid,
textarea:invalid {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

/* Disable browser validation styling on focus */
input:invalid:focus,
select:invalid:focus,
textarea:invalid:focus {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    outline: none;
}

/* Error styles - Reserve space for error messages */
.error {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 400;
    position: static;
    width: 100%;
    clear: both;
    height: 1rem;
    line-height: 1rem;
    visibility: hidden; /* Hide content but keep space */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c !important;
    background: #fdf2f2;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.has-error .error {
    visibility: visible;
    opacity: 1;
}

/* Message styles */
.message {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-weight: 400;
    text-align: center;
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
    line-height: normal;
    font-size:15px;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0364C6;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 175px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
    background: #1557B0;
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    background: linear-gradient(to right, #1d2a31 0%, #6B4226 50%, #1d2a31 100%);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Alternative SVG white color approach */
.footer-logo-img {
    filter: brightness(0) invert(1) sepia(1) saturate(0) hue-rotate(0deg);
}

.footer-tagline {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.footer-contact {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.footer-copyright {
    font-family: 'Mark Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

.iti--separate-dial-code.iti--show-flags .iti__selected-dial-code{
    display: none;
}
.contact-form #contact_number{
    border-radius: 8px;
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        background-size: 
            100% 100%,
            auto 50%;
    }
    
    .hero-section::before {
        height: calc(50% + 5.5rem);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 0.75rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-header {
        padding: 1rem;
    }
}

/* Loading state */
.form-loading .form-group input,
.form-loading .form-group select,
.form-loading .form-group textarea {
    opacity: 0.6;
    pointer-events: none;
}

/* Success animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-success .submit-btn {
    animation: successPulse 0.6s ease-in-out;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-main-image {
        margin-bottom: -1rem;
    }
    
    .contact-section {
        padding: 9rem 0 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .hero-main-image {
        margin-bottom: -1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-description {
        font-size: 0.8rem;
    }
    
    .contact-section {
        padding: 4rem 0 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        line-height: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-description {
        font-size: 0.75rem;
    }
    
    .hero-main-image {
        margin-bottom: -1rem;
    }
    
    .form-container {
        padding: 0;
        margin: 0;
    }
    
    .contact-title {
        font-size: 1.375rem;
    }
    
    .contact-description {
        font-size: 0.75rem;
    }
    
    .form-title {
        font-size: 0.7rem;
    }
    
    .submit-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Animation keyframes */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
