/* Contact Form 7 Custom Styles - Complete & Optimized */

/* Main form container */
.wpcf7 {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: var(--wp--preset--font-family--phenomena);
    color: var(--wp--preset--color--dark);
    box-sizing: border-box;
}

.wpcf7 p {
    color: var(--wp--preset--color--light-grey);
    margin: 0;
}

.wpcf7 a {
    color: var(--wp--preset--color--yellow);
    text-decoration: underline;
}

/* Form wrapper */
.wpcf7-form {
    background: linear-gradient(135deg, rgba(255, 0, 153, 0.18) 1%, rgb(17, 1, 25) 100%);
    padding: 2rem;
    border-radius: 20px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 2rem;
}

/* Individual form control wrappers */
.wpcf7-form-control-wrap {
    position: relative;
    display: block;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* SIMPLIFIED Two-column layout */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-row .form-half {
    flex: 1;
    box-sizing: border-box;
}

.form-row .form-half .wpcf7-form-control-wrap {
    margin-bottom: 0;
}

/* Alternative method: First two paragraphs side by side */
.wpcf7-form > p:nth-child(1),
.wpcf7-form > p:nth-child(2) {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
    margin-right: 20px;
    box-sizing: border-box;
}

.wpcf7-form > p:nth-child(2) {
    margin-right: 0;
}

/* Reset for other paragraphs */
.wpcf7-form > p:nth-child(n+3) {
    display: block;
    width: 100%;
    margin-right: 0;
}

/* All form inputs and textareas */
.wpcf7-form-control {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    font-size: var(--wp--preset--font-size--s);
    font-family: var(--wp--preset--font-family--phenomena);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--wp--preset--color--light); /* Changed to light color */
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-top: 0.5rem;
    min-height: 48px;
}

/* Placeholder text color */
.wpcf7-form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Focus and hover states for inputs */
.wpcf7-form-control:focus,
.wpcf7-form-control:hover {
    outline: none;
    border-color: var(--wp--preset--color--hot-pink);
    color: var(--wp--preset--color--white); /* Ensure text stays light on focus */
}

/* Textarea specific styling */
.wpcf7-textarea,
textarea.wpcf7-form-control {
    min-height: 80px !important;
    height: 80px !important;
    resize: vertical;
}

/* Select dropdowns */
.wpcf7-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FF0099' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    color: var(--wp--preset--color--light);
}

/* File upload styling */
.wpcf7-file {
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px dashed var(--wp--preset--color--hot-pink);
    color: var(--wp--preset--color--light);
}

/* Labels */
.wpcf7 label {
    display: block;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--wp--preset--color--hot-pink);
    font-size: var(--wp--preset--font-size--s);
    word-wrap: break-word;
}

/* Enhanced Checkbox and Radio Button Styling */

/* Hide default checkbox and radio inputs */
.wpcf7-checkbox input[type="checkbox"],
.wpcf7-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

/* Container styling */
.wpcf7-checkbox,
.wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    background: transparent;
    border: none;
}

/* Custom checkbox styling */
.wpcf7-checkbox .wpcf7-list-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    margin-right: 0;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wpcf7-checkbox .wpcf7-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--wp--preset--color--hot-pink);
}

/* Custom checkbox appearance */
.wpcf7-checkbox .wpcf7-list-item::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Checked state for checkbox */
.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item::before,
.wpcf7-checkbox .wpcf7-list-item:has(input:checked)::before {
    background: var(--wp--preset--color--hot-pink);
    border-color: var(--wp--preset--color--hot-pink);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Custom radio button styling */
.wpcf7-radio .wpcf7-list-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    margin-right: 0;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wpcf7-radio .wpcf7-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--wp--preset--color--hot-pink);
}

/* Custom radio button appearance */
.wpcf7-radio .wpcf7-list-item::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Checked state for radio button */
.wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item::before,
.wpcf7-radio .wpcf7-list-item:has(input:checked)::before {
    border-color: var(--wp--preset--color--hot-pink);
    background: var(--wp--preset--color--hot-pink);
}

/* Label text styling */
.wpcf7-checkbox .wpcf7-list-item-label,
.wpcf7-radio .wpcf7-list-item-label {
    color: var(--wp--preset--color--light);
    font-size: var(--wp--preset--font-size--s);
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
    margin-top: 1px;
}

/* Selected state styling */
.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item,
.wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item:has(input:checked),
.wpcf7-radio .wpcf7-list-item:has(input:checked) {
    background: rgba(255, 0, 153, 0.15);
    border-color: var(--wp--preset--color--hot-pink);
    box-shadow: 0 0 0 1px rgba(255, 0, 153, 0.2);
}

/* Focus states for accessibility */
.wpcf7-checkbox input[type="checkbox"]:focus + .wpcf7-list-item,
.wpcf7-radio input[type="radio"]:focus + .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item:has(input:focus),
.wpcf7-radio .wpcf7-list-item:has(input:focus) {
    outline: 2px solid var(--wp--preset--color--hot-pink);
    outline-offset: 2px;
}

/* SIMPLIFIED ACCEPTANCE CHECKBOX */
.wpcf7-acceptance {
    margin: 1rem 0;
    width: 100%;
    display: block;
    clear: both;
    background: transparent;
    border: none;
}

.wpcf7-acceptance .wpcf7-list-item {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    margin: 0;
    color: var(--wp--preset--color--light);
    box-sizing: border-box;
    width: 100%;
    overflow: visible;
}

.wpcf7-acceptance .wpcf7-list-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 0, 153, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 153, 0.2);
}

/* Hide default acceptance checkbox */
.wpcf7-acceptance input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom acceptance checkbox */
.wpcf7-acceptance .wpcf7-list-item::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Checked acceptance checkbox */
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item::before {
    background: var(--wp--preset--color--hot-pink);
    border-color: var(--wp--preset--color--hot-pink);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item {
    background: rgba(255, 0, 153, 0.15);
    border-color: var(--wp--preset--color--hot-pink);
    box-shadow: 0 5px 20px rgba(255, 0, 153, 0.3);
}

/* Acceptance label styling */
.wpcf7-acceptance .wpcf7-list-item-label {
    color: var(--wp--preset--color--light);
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    cursor: pointer;
}

/* Link styling within acceptance */
.wpcf7-acceptance .wpcf7-list-item-label a {
    color: var(--wp--preset--color--hot-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.wpcf7-acceptance .wpcf7-list-item-label a:hover {
    color: var(--wp--preset--color--yellow);
    text-decoration: underline;
}

/* Focus state for acceptance */
.wpcf7-acceptance input[type="checkbox"]:focus + .wpcf7-list-item {
    outline: 2px solid var(--wp--preset--color--hot-pink);
    outline-offset: 2px;
}

/* Submit button */
.wpcf7-submit {
    background-color: var(--wp--preset--color--hot-pink);
    color: var(--wp--preset--color--yellow);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--wp--preset--font-size--m);
    font-family: var(--wp--preset--font-family--phenomena);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--wp--preset--shadow--july-button-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin: 2rem auto 0;
    max-width: 100%;
    box-sizing: border-box;
}

.wpcf7-submit:hover {
    background-color: var(--wp--preset--color--hot-pink);
    color: var(--wp--preset--color--white);
    transform: translateY(-2px);
    box-shadow: var(--wp--preset--shadow--july-pink-glow);
}

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

/* Message styling */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: var(--wp--preset--color--dark);
    border: 2px solid var(--wp--preset--color--yellow);
    color: var(--wp--preset--color--yellow);
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 700;
    box-sizing: border-box;
    word-wrap: break-word;
}

.wpcf7-mail-sent-ok {
    background-color: var(--wp--preset--color--light);
    border: 2px solid var(--wp--preset--color--hot-pink);
    color: var(--wp--preset--color--dark);
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 700;
    box-sizing: border-box;
    word-wrap: break-word;
}

.wpcf7-spam-blocked {
    background-color: var(--wp--preset--color--lilac-base);
    border: 2px solid var(--wp--preset--color--purple);
    color: var(--wp--preset--color--white);
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 700;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Validation error messages */
.wpcf7-not-valid-tip {
    color: var(--wp--preset--color--yellow);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 700;
    display: block;
    word-wrap: break-word;
}

.wpcf7-response-output {
   color: var(--wp--preset--color--white); 
}

/* Loading spinner */
.wpcf7-spinner {
    border: 2px solid var(--wp--preset--color--light-grey);
    border-top: 2px solid var(--wp--preset--color--hot-pink);
}

/* Responsive design */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 0 10px;
    }
    
    .wpcf7-form {
        padding: 1rem;
        margin: 0;
    }
    
    .wpcf7-submit {
        width: 100%;
        padding: 1rem;
        margin: 1rem 0 0 0;
    }
    
    /* Stack two-column fields vertically on mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-half {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .wpcf7-form > p:nth-child(1),
    .wpcf7-form > p:nth-child(2) {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile checkbox and radio adjustments */
    .wpcf7-checkbox .wpcf7-list-item,
    .wpcf7-radio .wpcf7-list-item {
        padding: 10px;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .wpcf7-checkbox .wpcf7-list-item::before,
    .wpcf7-radio .wpcf7-list-item::before {
        width: 18px;
        height: 18px;
    }
    
    /* Mobile acceptance checkbox adjustments */
    .wpcf7-acceptance .wpcf7-list-item {
        padding: 16px;
        gap: 12px;
    }
    
    .wpcf7-acceptance .wpcf7-list-item::before {
        width: 22px;
        height: 22px;
    }
    
    .wpcf7-acceptance .wpcf7-list-item-label {
        font-size: 0.9rem;
    }
}