* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SVG smooth anti-aliasing */
svg, img[src$=".svg"], .location-icon, .logo, .contact-icon {
    shape-rendering: geometricPrecision;
    text-rendering: optimizeLegibility;
    image-rendering: smooth;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: blur(0px);
    transform: translateZ(0);
}

/* Enhanced smoothing for all SVG elements */
svg * {
    shape-rendering: geometricPrecision;
}

body {
    font-family: 'Poppins', Helvetica, sans-serif;
    background-color: #ffffff;
    line-height: 1.5;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 92px;
    padding: 64px 0 20px 0;
    width: 100%;
}

.contact-item-hero {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 6px;
    margin-left: -6px

}}

.contact-icon-hero {
    width: 26px;
    height: 26px;
}

.contact-content-hero .contact-link {
    color: #000671 !important;
}

.contact-content-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0
 ;
}

/* Remove desktop-specific spacing for consistency */

.logo {
    width: 196.85px;
    height: auto;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    width: 100%;
}

.main-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    color: #000671;
    font-size: 98px;
    text-align: center;
    line-height: 100px;
    margin: 0;
    letter-spacing: -0.03em;
}

.subtitle {
    display: block;
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    color: #000671;
    font-size: 26px;
    text-align: center;
    line-height: 32px;
    margin: 24px 0 0 0;
    letter-spacing: normal;
}

.offices-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 984px;
}

.office-card {
    width: 312px;
    height: auto;
    min-height: 485.28px;
    padding: 24px 24px 32px 24px;
    background-color: #ffffff;
    border: 3px solid #b2dfff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.office-image {
    height: 160px;
    max-height: 160px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.office-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 252px;
}

.office-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
}

.office-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.location-icon {
    width: 32px;
    height: 38.28px;
    background-image: url('/figmaAssets/Icon_location.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.office-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    color: #000671;
    font-size: 28px;
    line-height: 28px;
    white-space: nowrap;
}

.office-street {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: #000671;
    font-size: 18px;
    line-height: 22px;
    text-align: left;
    margin: 0 0 24px 40px;
}

.office-features {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: #000671;
    font-size: 16px;
    line-height: 22.4px;
    list-style: disc;
    padding-left: 20px;
}

.enquire-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    width: 100%;
    background-color: #b2dfff;
    color: #000671;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.enquire-button:hover {
    background-color: #9dd1ff;
}

.enquiry-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    align-items: center;
}

.section-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    color: #000671;
    font-size: 44px;
    text-align: center;
    line-height: 44px;
    margin: 0;
}

.form-card {
    width: 640.93px;
    padding: 40px;
    background-color: #b2dfff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.form-label {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: #000671;
    font-size: 18px;
    line-height: 27px;
}

.form-input {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #000671;
    border-radius: 0;
    font-family: 'Poppins', Helvetica;
    font-size: 16px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    border: 4px solid #000671;
    padding: 14px 18px;
}

.error-message {
    color: #dc2626;
    font-family: 'Poppins', Helvetica;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-input {
    border-color: #dc2626;
}

.form-group.error .error-message {
    display: block;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.checkbox-group.error .error-message {
    display: block;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox {
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    border: 2px solid #000671;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.checkbox.checked {
    background-color: #000671;
    border: 2px solid #000671;
    background-image: url('/figmaAssets/check.svg');
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 2px 0;
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: #000671;
    font-size: 18px;
    line-height: 27px;
    white-space: nowrap;
}

.submit-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    width: 100%;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background-color: #000671;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    width: 100%;
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.submit-button:hover {
    background-color: #000450;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    background-image: url('/figmaAssets/arrow-right.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-flex;
    align-items: center;
}

.response-text {
    width: 100%;
    text-align: center;
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    color: #000671;
    font-size: 18px;
    line-height: 27px;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
    width: 100%;
    background-color: #000671;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-icon {
    width: 35.6px;
    height: 35.6px;
    filter: brightness(0) invert(1);
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 45.93px;
    padding: 4px 0 0 0;
    align-items: center;
}

.contact-link {
    font-family: 'Poppins', Helvetica;
    color: #ffffff;
    font-size: 24px;
    text-align: center;
    line-height: 24px;
    white-space: nowrap;
    text-decoration: none;
}

.contact-link.bold {
    font-weight: 700;
}

.contact-link.normal {
    font-weight: 400;
}

/* Remove special phone contact styling to make all contacts consistent */

/* Map Section - consistent with enquiry section */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    align-items: center;
}

.map-container {
    width: 100%;
    max-width: 984px;
    height: 400px;
    border: 3px solid #b2dfff;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.google-map {
    width: 100%;
    height: 100%;
    border: none;
    filter: saturate(0.8) contrast(1.1);
}

/* Custom map styling to match brand blue water */
.leaflet-container {
    background: #b2dfff !important;
}

/* Direct approach: overlay the entire map with brand color and blend */
#google-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #b2dfff;
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1000;
}

/* Ensure markers appear above the overlay */
.custom-location-marker {
    z-index: 1001 !important;
}

.leaflet-popup {
    z-index: 1002 !important;
}



/* Responsive Map */
@media (max-width: 1024px) {
    .map-container {
        max-width: 100%;
        margin: 0 24px;
    }
}

/* Leaflet popup styling to remove border radius */
.leaflet-popup-content-wrapper {
    border-radius: 0 !important;
}

.leaflet-popup-tip {
    border-radius: 0 !important;
}

/* Custom location marker styling */
.custom-location-marker {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
}

.custom-location-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.custom-location-marker:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .map-section {
        padding: 48px 0;
        gap: 32px;
    }
    
    .map-container {
        height: 300px;
        margin: 0 24px;
    }
}

/* Success Notification Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 5, 112, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.success-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.success-content {
    background-color: white;
    border-radius: 0px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.success-overlay.hidden .success-content {
    transform: scale(0.9);
}

.success-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.success-title {
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    font-size: 32px;
    color: #000671;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.success-message {
    font-family: 'Poppins', Helvetica;
    font-weight: 400;
    font-size: 18px;
    color: #000671;
    line-height: 1.5;
    margin: 0 0 32px 0;
}

.success-button {
    background-color: #B3DFFF;
    color: #000671;
    border: none;
    padding: 16px 32px;
    border-radius: 0px;
    font-family: 'Poppins', Helvetica;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.success-button:hover {
    background-color: #9DD3FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 223, 255, 0.4);
}

/* Responsive design */
@media (max-width: 1024px) {
    .offices-grid {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    .main-title {
        font-size: 72px;
        line-height: 72px;
        letter-spacing: -0.03em;
    }
    
    .form-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 32px 24px;
        gap: 80px;
    }
    
    .enquiry-section {
        margin: 0 -24px 0 -24px;
        padding: 0;
        gap: 32px;
    }
    
    .section-title {
        margin: 0;
        padding: 0;
    }
    
    .form-card {
        padding: 0;
    }
    
    .map-section {
        margin: 0 -24px 0 -24px;
        padding: 0;
        gap: 32px;
    }
    
    .map-section .section-title {
        margin: 0;
        padding: 0;
    }
    
    .logo {
        width: 157.48px; /* 80% of 196.85px */
    }
    
    .main-title {
        font-size: 88px;
        line-height: 100%;
        letter-spacing: -0.03em;
    }
    
    .subtitle {
        font-size: 26px;
        line-height: 32px;
        margin: 24px 0 0 0;
    }
    
    .offices-grid {
        flex-direction: column;
        width: 100%;
        max-width: 375px;
        gap: 24px;
    }
    
    .office-card {
        width: 100%;
        max-width: 312px;
        height: auto;
        padding: 24px;
        gap: 16px;
    }
    
    .office-image {
        height: 140px;
        flex: none;
    }
    
    .office-content {
        width: 100%;
        gap: 16px;
    }
    
    .office-header {
        gap: 2px;
    }
    
    .office-street {
        margin: 0 0 12px 40px;
    }
    
    .office-title {
        font-size: 26px;
        line-height: 32px;
    }
    
    .office-features {
        font-size: 16px;
        line-height: 20px;
        margin: 16px 0;
    }
    
    .enquire-button {
        padding: 16px;
        font-size: 16px;
    }
    
    .form-card {
        width: 100%;
        max-width: 100%;
        padding: 24px;
        padding-top: 32px;
        margin: 0;
    }
    
    .section-title {
        font-size: 32px;
        line-height: 32px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-label {
        font-size: 16px;
        line-height: 20px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .checkbox-label {
        font-size: 16px;
        line-height: 20px;
    }
    
    .submit-button {
        padding: 16px;
        font-size: 16px;
    }
    
    .response-text {
        font-size: 14px;
        line-height: 18px;
    }
    
    .contact-link {
        font-size: 18px;
        line-height: 18px;
    }
    
    .success-content {
        padding: 32px 24px;
        max-width: 400px;
    }
    
    .success-title {
        font-size: 28px;
    }
    
    .success-message {
        font-size: 16px;
    }
    
    .success-button {
        padding: 14px 28px;
        font-size: 16px;
    }
}