/* CSS Variables for SKEA Brand Colors */
:root {
    --contact-blue-excellence: #25384E;
    --contact-deep-blue: #2D536D;
    --contact-grey: #D5DBE6;
    --contact-white: #FFFFFF;
    --contact-light-bg: #F8F9FA;
}

/* Section Container */
.contact-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

@media (min-width: 640px) {
    .contact-section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .contact-section {
        padding: 80px 0px;
    }
}

/* RTL Support */
.contact-section[dir="rtl"] {
    direction: rtl;
}

/* Background */
.contact-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--contact-light-bg), var(--contact-white), var(--contact-light-bg));
}

/* Background Decorations */
.contact-background-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.contact-decoration-circle-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: url(/contact-bg-left.png) 0 0 no-repeat;
    background-size: 20%;
    opacity: 0.5;
}

.contact-decoration-circle-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: url(/contact-bg-right.png) 100% 100% no-repeat;
    background-size: 20%;
    opacity: 0.5;
}

@keyframes contact-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* Container */
.contact-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .contact-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .contact-container {
        padding: 0 2rem;
    }
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .contact-header {
        margin-bottom: 4rem;
    }
}

.contact-heading {
    font-size: 2.25rem;
    color:#1f394f;
    margin-bottom: 1rem;
    font-weight: 500;
	letter-spacing: -0.96px;
}

@media (min-width: 640px) {
    .contact-heading {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .contact-heading {
        font-size: 48px;
    }
}

.contact-subheading {
    font-size: 1.25rem;
    color: var(--contact-deep-blue);
    margin-bottom: 1.5rem;
	font-weight:400;
}

@media (min-width: 640px) {
    .contact-subheading {
        font-size: 1.5rem;
    }
}

.contact-description {
    font-size: 1rem;
    color: rgba(37, 56, 78, 0.7);
    max-width: 48rem;
    margin: 0 auto;
	font-weight:400;
}

@media (min-width: 640px) {
    .contact-description {
        font-size: 1.125rem;
    }
}

/* Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 3rem;
    }
}

/* Left Side - Graphics */
.contact-left-side {
    order: 3;
}

@media (min-width: 1024px) {
    .contact-left-side {
        grid-column: span 5;
        order: 1;
    }
    
    .contact-section[dir="rtl"] .contact-left-side {
        order: 2;
    }
}

.contact-graphics-wrapper {
    position: relative;
}

/* Image Card */
.contact-image-card{margin-bottom: 20px;} 
.contact-image-card img{width:100%;}
.contact-image-container {
    position: relative;
    height: 21.875rem;
}

@media (min-width: 640px) {
    .contact-image-container {
        height: 25rem;
    }
}

/* Background Image */
.contact-image-wrapper {
    position: absolute;
    inset: 0;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay */
.contact-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(37, 56, 78, 0.95), rgba(45, 83, 109, 0.9), rgba(37, 56, 78, 0.95));
}

/* Architectural Overlay */
.contact-architectural-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.contact-architectural-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
}

/* Star Grid */
.contact-star-grid {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.contact-star-svg {
    width: 100%;
    height: 100%;
}

/* Decorative Shapes */
.contact-shape-circle {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 5rem;
    height: 5rem;
    border: 2px solid rgba(213, 219, 230, 0.3);
    border-radius: 50%;
}

.contact-shape-square {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    border: 2px solid rgba(213, 219, 230, 0.3);
    transform: rotate(45deg);
}

/* Center Icon */
.contact-center-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-circle {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-message-icon {
    width: 3rem;
    height: 3rem;
    color: white;
}

/* Contact Info Cards */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    background-color: var(--contact-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(213, 219, 230, 0.3);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.contact-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon-email {
    background: linear-gradient(to bottom right, var(--contact-blue-excellence), var(--contact-deep-blue));
}

.contact-card-icon-location {
    background: linear-gradient(to bottom right, var(--contact-deep-blue), var(--contact-blue-excellence));
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.contact-card-text {
    flex: 1;
}

.contact-card-label {
    font-size: 0.875rem;
    color: var(--contact-deep-blue);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 500;
}

.contact-card-value, .contact-card-value a {
    font-size: 1.125rem;
    color: var(--contact-blue-excellence);
	text-decoration:none;
	margin-bottom: 0;
	font-weight:400;
}

/* Floating Decoration */
.contact-floating-decoration {
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, rgba(213, 219, 230, 0.2), transparent);
    filter: blur(2rem);
}

/* Right Side - Form */
.contact-right-side {
    order: 2;
}

@media (min-width: 1024px) {
    .contact-right-side {
        grid-column: span 7;
        order: 2;
    }
    
    .contact-section[dir="rtl"] .contact-right-side {
        order: 1;
    }
}

.contact-form-wrapper {
    position: relative;
}

/* Decorative Corners */
.contact-corner-top-left {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 2rem;
    height: 2rem;
    border-top: 4px solid var(--contact-blue-excellence);
    border-left: 4px solid var(--contact-blue-excellence);
    border-top-left-radius: 1rem;
}

.contact-corner-bottom-right {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    border-bottom: 4px solid var(--contact-blue-excellence);
    border-right: 4px solid var(--contact-blue-excellence);
    border-bottom-right-radius: 1rem;
}

/* Form Container */
.contact-form-container {
    background-color: var(--contact-white);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border: 1px solid rgba(213, 219, 230, 0.2);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .contact-form-container {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .contact-form-container {
        padding: 3rem;
    }
}

/* Pattern Background */
.contact-pattern-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    opacity: 0.05;
}

.contact-pattern-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Success Message */
.contact-success-message {
    padding: 3rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-success-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(to bottom right, var(--contact-blue-excellence), var(--contact-deep-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-success-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.contact-success-heading {
    font-size: 1.5rem;
    color: var(--contact-blue-excellence);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
}

.contact-success-text {
    font-size: 1.125rem;
    color: var(--contact-deep-blue);
	font-weight:400;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}

/* Form Field */
.contact-field {
    display: flex;
    flex-direction: column;
}

/* Label */
.contact-label {
    font-size: 0.875rem;
    color: var(--contact-blue-excellence);
    margin-bottom: 0.75rem;
    display: block;
	font-weight:400;
}

/* Input Wrapper */
.contact-input-wrapper {
    position: relative;
}

/* Input & Textarea */
.contact-input,
.contact-textarea {
    width: 100%;
    padding: 0.7rem 1.0rem;
    border: 2px solid var(--contact-grey);
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: rgba(248, 249, 250, 0.5);
    font-size: 1rem;
    color: var(--contact-blue-excellence);
	font-weight:400;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(37, 56, 78, 0.5);
}

.contact-input:hover,
.contact-textarea:hover {
    border-color: rgba(45, 83, 109, 0.5);
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: var(--contact-blue-excellence);
    background-color: var(--contact-white);
    box-shadow: 0 10px 25px rgba(37, 56, 78, 0.1);
}

.contact-textarea {
    resize: none;
    min-height: 8rem;
}

/* Input Error State */
.contact-input-error {
    border-color: #ef4444 !important;
}

/* Error Message */
.contact-error {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.25rem;
	font-weight:400;
}

/* Submit Button */
.contact-submit-button {
    width: 100%;
    background: #1e556f;
    color: var(--contact-white);
    font-size: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
	font-weight:500;
}



.contact-submit-button:hover {
    background-color: #163f52;
}

.contact-submit-button:hover .contact-button-icon {
    transform: translateX(0.25rem);
}

.contact-button-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.3s ease;
}

.contact-button-text {
    position: relative;
    z-index: 10;
}

.contact-button-icon {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
    /* Ensure mobile order */
    .contact-header {
        order: 1;
    }
    
    .contact-right-side {
        order: 2;
    }
    
    .contact-left-side {
        order: 3;
    }
}

/* RTL Specific Styles */
html[dir=rtl]  .contact-corner-top-left {
    left: auto;
    right: -1rem;
    border-left: none;
    border-right: 4px solid var(--contact-blue-excellence);
    border-top-left-radius: 0;
    border-top-right-radius: 1rem;
}

html[dir=rtl]  .contact-corner-bottom-right {
    right: auto;
    left: -1rem;
    border-right: none;
    border-left: 4px solid var(--contact-blue-excellence);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 1rem;
}

html[dir=rtl]  .contact-floating-decoration {
    right: auto;
    left: -2rem;
}

html[dir=rtl]  .contact-pattern-background {
    right: auto;
    left: 0;
}
html[dir=rtl] .contact-label, html[dir=rtl] .contact-input, html[dir=rtl] .contact-textarea, html[dir=rtl] .contact-card-label,  html[dir=rtl] .contact-card-value,  html[dir=rtl] .contact-card-value a{text-align:right;}
html[dir=rtl] .contact-card-content{ flex-direction: row-reverse;}