/* Slide-in Contact Drawer Styles */

.contact-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.contact-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 600px;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.15);
    padding: 3rem 4rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.contact-drawer.is-active {
    right: 0;
}

/* Background Glowing Effect */
.contact-drawer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(20%, -20%);
}

/* Close Button */
.drawer-close {
    position: absolute;
    top: 2.5rem;
    right: 3rem;
    width: 50px;
    height: 50px;
    background: #0F172A;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.drawer-close:hover {
    transform: scale(1.15) rotate(90deg);
    background: linear-gradient(90deg, #0EA5E9 0%, #8B5CF6 100%);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2);
}

/* Header Section */
.drawer-header {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
}

.drawer-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--main-title);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(90deg, #EC4899 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.drawer-subtitle {
    font-size: 1.25rem;
    color: #64748B;
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* Form Styles */
.contact-drawer-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--section-heading);
    font-weight: 600;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 2px;
}

.form-group input,
.form-group textarea {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #0F172A;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #EC4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* Consent Checkbox */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: #3B82F6;
}

.form-consent label {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.6;
    cursor: pointer;
    font-weight: 500;
}

/* Submit Button */
.form-submit-wrapper {
    margin-top: 1rem;
}

.drawer-submit-btn {
    background: var(--wp--preset--gradient--main-gradient);
    color: #ffffff;
    border: none;
    padding: 1.25rem 4rem;
    border-radius: 100px;
    font-family: var(--wp--preset--font-family--heading);
    font-size: var(--wp--preset--font-size--section-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.25);
    width: fit-content;
}

.drawer-submit-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.4);
}

.drawer-submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Footer Link */
.drawer-footer {
    margin-top: auto;
    text-align: left;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.drawer-footer a {
    color: #0F172A;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--subtitle);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.drawer-footer a::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #EC4899, #3B82F6);
    margin-top: 8px;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.drawer-footer a:hover {
    color: #EC4899;
}

.drawer-footer a:hover::after {
    width: 100%;
}

/* Scrollbar Style */
.contact-drawer::-webkit-scrollbar {
    width: 6px;
}

.contact-drawer::-webkit-scrollbar-track {
    background: transparent;
}

.contact-drawer::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-drawer {
        padding: 5rem 2rem;
        width: 100%;
    }

    .drawer-title {
        font-size: 3rem;
        letter-spacing: -0.02em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-home-submit {
        width: 100%;
    }

    .privacy-label {
        font-size: 0.85rem !important;
    }

    .drawer-submit-btn {
        width: 100%;
        padding: 1rem 2rem;
        /* Reduced padding */
        font-size: 1rem;
        /* Reduced font size */
    }
}