/* ==========================================================================
   Contact Form Block
   ========================================================================== */

.contact-form-block {
    padding: 4rem 0;
    position: relative;
    overflow: visible;
}

/* Container wrapper for proper width */
.contact-form-block.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Inner container with max-width matching other sections */
.contact-form-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* The actual colored box */
.contact-form-colored-box {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 30px;
    padding: 1rem;
    position: relative;
}

/* Decorative Shapes */
.decorative-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #7EFF00;
    top: -150px;
    left: 10%;
    opacity: 0.8;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #FF006E;
    top: -200px;
    right: 30%;
    opacity: 0.8;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: #FF006E;
    bottom: -125px;
    right: 10%;
    opacity: 0.8;
}

/* Container */
.contact-form-container {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.contact-form-container a {
    color: #EC268E !important;
    font-weight: 600;
}

/* Content Grid */
.contact-form-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    min-height: 400px;
}

/* Text Content */
.contact-text {
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Typography */
.contact-small-heading {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-main-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.contact-description {
    font-size: 1.375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-subtext {
    font-size: 1.375rem;
    opacity: 0.8;
}

/* Google Maps Integration */
.contact-map-container {
    margin-top: 2.5rem;
    position: relative;
}

.contact-map-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-map-wrapper:hover {
    transform: none;
    box-shadow: inherit;
}

.contact-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(123, 63, 242, 0.1) 0%, 
        rgba(0, 212, 170, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.contact-map {
    width: 100%;
    height: 350px;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Map Loading State */
.contact-map.loading {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-map.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(123, 63, 242, 0.2);
    border-top: 3px solid var(--button-color);
    border-radius: 50%;
    animation: mapSpin 1s linear infinite;
}

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

/* Form Wrapper */
.contact-form-wrapper {
    background: transparent;
}

/* Custom Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: white;
    border: none;
    border-radius: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #666;
    opacity: 1;
}

/* Textarea specific */
.form-textarea {
    border-radius: 1rem;
    resize: vertical;
    min-height: 100px;
    padding: 1.25rem 1.5rem;
}

/* Submit Button */
.form-submit {
    margin-top: 0.5rem;
    text-align: left;
}

.submit-button {
    background: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    width: 50%;
}

.submit-button:hover {
    transform: translateY(-3px);
    /* Box shadow removed for cleaner hover effect */
}

/* Contact Form 7 Specific Styles */
.contact-form-block .wpcf7 {
    width: 100%;
}

.contact-form-block .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Remove CF7 default paragraph tags and breaks */
.contact-form-block .wpcf7-form p {
    margin: 0;
}

.contact-form-block .wpcf7-form br {
    display: none;
}

.contact-form-block .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-block .wpcf7-form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background: white;
    border: none;
    border-radius: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.contact-form-block .wpcf7-form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-form-block .wpcf7-textarea {
    border-radius: 1rem;
    resize: vertical;
    min-height: 100px;
    padding: 1.25rem 1.5rem;
}

/* Checkbox styling */
.contact-form-block .wpcf7-checkbox {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: #333;
    cursor: pointer;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--button-color);
    border: 2px solid #ddd;
    border-radius: 3px;
    background: white;
    flex-shrink: 0;
    min-width: 18px;
    min-height: 18px;
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked {
    background-color: var(--button-color);
    border-color: var(--button-color);
}

.contact-form-block .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 1rem;
    font-family: var(--font-primary);
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.contact-form-block .wpcf7-submit {
    background: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    width: 50%;
    text-align: center;
}

.contact-form-block .wpcf7-submit:hover {
    transform: translateY(-3px);
    
}

/* Align submit button wrapper to left */
.contact-form-block .wpcf7-form p:last-of-type {
    text-align: left;
}

/* Remove spinner wrapper paragraph */
.contact-form-block .wpcf7-spinner {
    display: none;
}

/* Validation Styles */
.contact-form-block .wpcf7-not-valid {
    border: 2px solid #ff6b6b;
}

.contact-form-block .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}