/* Contact Form 7 - Blocky Bold Style with Scroll-based Slide Effect */
.contact-section {
    background-color: #fff;
    padding: 0;
    position: relative;
    z-index: 200;
    overflow: visible;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Headline wrapper - stays outside black container */
.contact-headline-wrapper {
    position: relative;
    z-index: 2;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.form-headline {
    font-family: 'Made Tommy Bold', sans-serif;
    font-weight: normal;
    font-size: clamp(4rem, 8vw, 7rem);
    text-align: center;
    color: #000 !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1;
    margin-bottom: -0.15em;
    position: relative;
    z-index: 2;
    transition: text-align 0s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When inverted, headline slides to left */
.contact-section.inverted .form-headline {
    text-align: left;
}

/* Black container for form */
.contact-form-container {
    background-color: #000;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.contact-section.inverted .contact-form-container {
    opacity: 1;
    transform: translateX(0);
}

.custom-contact-form {
    padding: 40px;
    background-color: transparent;
    color: #fff;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

.contact-section.inverted .custom-contact-form {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom row: grey text left, bubble+send right */
.custom-contact-form {
    display: flex;
    flex-direction: column;
}

.contact-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
}

/* Contact invitation text - left side */
.contact-invitation-text {
    max-width: 350px;
    text-align: left;
}

.contact-invitation-text p {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Made Tommy Regular', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Message area - right side with bubble and send stacked */
.contact-message-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.contact-message-area label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
    font-size: 0;
}

.contact-message-area label .wpcf7-form-control-wrap,
.contact-message-area label textarea {
    font-size: 0.95rem;
}

/* Form layout using CSS Grid - targets CF7 direct children */
.contact-form-wrapper .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px 30px;
    align-items: start;
}

/* Reset all paragraphs and direct children */
.contact-form-wrapper .wpcf7-form > p,
.contact-form-wrapper .wpcf7-form > label,
.contact-form-wrapper .wpcf7-form > div {
    margin: 0;
}

/* First 3 labels (name, email, subject) take one column each */
.contact-form-wrapper .wpcf7-form > p:nth-of-type(1),
.contact-form-wrapper .wpcf7-form > p:nth-of-type(2),
.contact-form-wrapper .wpcf7-form > p:nth-of-type(3) {
    grid-column: span 1;
}

/* Message row - spans all 3 columns, two-column layout */
.contact-form-wrapper .wpcf7-form > p:nth-of-type(4) {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Message bubble container - right side with submit below */
.contact-form-wrapper .wpcf7-form > p:nth-of-type(4) label {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Response output spans full width */
.contact-form-wrapper .wpcf7-form .wpcf7-response-output {
    grid-column: 1 / -1;
}

/* Inline label styling */
.wpcf7-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Made Tommy Regular', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.wpcf7-form label .wpcf7-form-control-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

@media (max-width: 992px) {
    .contact-form-wrapper .wpcf7-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-form-wrapper .wpcf7-form > p:nth-of-type(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper .wpcf7-form {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper .wpcf7-form > p:nth-of-type(1),
    .contact-form-wrapper .wpcf7-form > p:nth-of-type(2),
    .contact-form-wrapper .wpcf7-form > p:nth-of-type(3) {
        grid-column: 1;
    }
    
    .contact-form-wrapper .wpcf7-form > p:nth-of-type(4) {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpcf7-form label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .form-headline {
        font-size: 2rem;
    }
    
    .wpcf7 textarea {
        width: 100%;
    }
    
    .contact-bottom-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-invitation-text {
        max-width: 100%;
    }
    
    .contact-message-area {
        align-items: flex-end;
        width: 100%;
    }
}
.wpcf7-not-valid-tip{
    font-size: 0.8rem;
}

/* Input fields - white on black background */
.wpcf7 input {
    width: 100%;
    padding: 10px 0;
    color: #fff;
    font-family: 'Made Tommy Regular', sans-serif;
    transition: border-color 0.3s ease;
    border: 0;
    border-radius: 0;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    margin: 0;
}

/* Fix autofill background */
.wpcf7 input:-webkit-autofill,
.wpcf7 input:-webkit-autofill:hover,
.wpcf7 input:-webkit-autofill:focus,
.wpcf7 input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #000 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
}

.wpcf7 input:focus {
    border-bottom: 1px solid #fff;
    outline: none;
    box-shadow: none;
}

/* Textarea - iPhone style blue message bubble */
.wpcf7 textarea,
.contact-message-area textarea {
    width: 200px;
    min-height: 40px;
    height: auto;
    resize: none;
    border: 0;
    border-radius: 18px;
    outline: 0;
    background-color: #007AFF !important;
    color: #fff !important;
    font-family: 'Made Tommy Regular', sans-serif;
    font-size: 0.95rem;
    padding: 10px 15px;
    line-height: 1.4;
    overflow: hidden;
}

.wpcf7 textarea:focus,
.contact-message-area textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3);
}

.wpcf7 textarea::placeholder,
.contact-message-area textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.wpcf7-spinner{
    margin: 0 auto;
    margin-top: 0px;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
}
/* iPhone-style send button with arrow SVG */
.wpcf7-form input[type="submit"],
.contact-message-area input[type="submit"] {
    background-color: #007AFF !important;
    color: transparent !important;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2L15 22L11 13L2 9L22 2Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.wpcf7-form input[type="submit"]:hover,
.contact-message-area input[type="submit"]:hover {
    background-color: #0056b3 !important;
    transform: scale(1.1);
}

.wpcf7-form input[type="submit"]:active,
.contact-message-area input[type="submit"]:active {
    transform: translateY(2px);
}
/* Placeholders - white on black */
.contact-form-container ::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    font-family: 'Made Tommy Regular', sans-serif;
}

.contact-form-container :-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-container ::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}



.wpcf7-form {
    
    padding: 0 !important;
    margin: 0 !important;

}



.wpcf7-response-output {
    border: none !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    color: #fff !important;
    font-family: 'Made Tommy Regular', sans-serif !important;
    padding: 15px 20px !important;
    margin: 20px 0 0 !important;
}

.wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 0.7rem;
    font-weight: normal;
    position: absolute;
    left: 0;
    top: 100%;
    white-space: nowrap;
}

/* Toast notification for form feedback */
.cf7-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 28px;
    border-radius: 12px;
    font-family: 'Made Tommy Regular', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cf7-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.cf7-toast-success {
    background-color: #1a7f37;
}

.cf7-toast-error {
    background-color: #d1242f;
}