/**
 * Custom Cabinet Page Template Styles
 * Template: page-templates/custom-cabinet.php
 * Source: https://georgeintl.com/custom-cabinet/
 */

/* Restore Font Awesome icons under global font-family override. */
body.elementor-page-4039 .fa,
body.elementor-page-4039 .fas,
body.elementor-page-4039 .far,
body.elementor-page-4039 .fal,
body.elementor-page-4039 .fad {
    font-family: "Font Awesome 5 Free" !important;
}

body.elementor-page-4039 .fa,
body.elementor-page-4039 .fas,
body.elementor-page-4039 .fal,
body.elementor-page-4039 .fad {
    font-weight: 900 !important;
}

body.elementor-page-4039 .far {
    font-weight: 400 !important;
}

body.elementor-page-4039 .fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Keep custom-cabinet content typography aligned with source page. */
.page-template-custom-cabinet .elementor-4039 h1,
.page-template-custom-cabinet .elementor-4039 h2,
.page-template-custom-cabinet .elementor-4039 h3,
.page-template-custom-cabinet .elementor-4039 h4,
.page-template-custom-cabinet .elementor-4039 h5,
.page-template-custom-cabinet .elementor-4039 h6,
.page-template-custom-cabinet .elementor-4039 p,
.page-template-custom-cabinet .elementor-4039 span,
.page-template-custom-cabinet .elementor-4039 a,
.page-template-custom-cabinet .elementor-4039 li,
.page-template-custom-cabinet .elementor-4039 label,
.page-template-custom-cabinet .elementor-4039 button,
.page-template-custom-cabinet .elementor-4039 input,
.page-template-custom-cabinet .elementor-4039 textarea,
.page-template-custom-cabinet .elementor-4039 select,
.page-template-custom-cabinet .elementor-4039 option {
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
}

.page-template-custom-cabinet .elementor-4039 h1.elementor-heading-title {
    font-weight: 600 !important;
}

/* Restore floating action buttons when kohler-theme is dequeued on this template. */
.page-template-custom-cabinet .sese-floating-buttons-wrapper,
.page-template-page-templatescustom-cabinet-php .sese-floating-buttons-wrapper {
    position: fixed;
    bottom: 44px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.page-template-custom-cabinet .sese-floating-button,
.page-template-page-templatescustom-cabinet-php .sese-floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-template-custom-cabinet .sese-floating-button-email,
.page-template-page-templatescustom-cabinet-php .sese-floating-button-email {
    background-color: #0078d4;
}

.page-template-custom-cabinet .sese-floating-button-email:hover,
.page-template-page-templatescustom-cabinet-php .sese-floating-button-email:hover {
    background-color: #0063b1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-template-custom-cabinet .sese-floating-button-whatsapp,
.page-template-page-templatescustom-cabinet-php .sese-floating-button-whatsapp {
    background-color: #25d366;
}

.page-template-custom-cabinet .sese-floating-button-whatsapp:hover,
.page-template-page-templatescustom-cabinet-php .sese-floating-button-whatsapp:hover {
    background-color: #20bd5a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-template-custom-cabinet .sese-floating-button-tiktok,
.page-template-page-templatescustom-cabinet-php .sese-floating-button-tiktok {
    background-color: #000;
}

.page-template-custom-cabinet .sese-floating-button-tiktok:hover,
.page-template-page-templatescustom-cabinet-php .sese-floating-button-tiktok:hover {
    background-color: #1a1a1a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-template-custom-cabinet .sese-floating-button svg,
.page-template-page-templatescustom-cabinet-php .sese-floating-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Base Container */
.custom-cabinet-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cc-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section Base Styles */
.custom-cabinet-page section {
    padding: 60px 0;
}

.cc-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
    position: relative;
}

.cc-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c9a45c;
    margin: 15px auto 0;
}

.cc-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Hero Section */
.cc-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cc-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.cc-hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* Breadcrumb */
.cc-breadcrumb {
    padding: 20px 0;
    background: #f8f8f8;
}

.cc-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.cc-breadcrumb a:hover {
    color: #c9a45c;
}

.cc-breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* Collections Section */
.cc-collections {
    background: #fff;
}

.cc-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cc-collection-item {
    text-align: center;
}

.cc-collection-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.cc-collection-item a:hover {
    transform: translateY(-5px);
}

.cc-collection-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cc-collection-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.cc-collection-sub {
    display: block;
    font-size: 0.9rem;
    color: #c9a45c;
}

/* Intro Section */
.cc-intro {
    background: #f8f8f8;
}

.cc-intro-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 15px;
}

.cc-intro-content a {
    color: #c9a45c;
    text-decoration: none;
    font-weight: 500;
}

.cc-intro-content a:hover {
    text-decoration: underline;
}

.cc-intro-cta {
    margin-top: 30px;
}

.cc-cta-btn {
    display: inline-block;
    background: #c9a45c;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cc-cta-btn:hover {
    background: #b8923f;
    transform: scale(1.05);
}

/* Steps Section */
.cc-steps {
    background: #fff;
}

.cc-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.cc-step-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

.cc-step-reverse {
    direction: rtl;
}

.cc-step-reverse > * {
    direction: ltr;
}

.cc-step-header {
    margin-bottom: 20px;
}

.cc-step-label {
    color: #c9a45c;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cc-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cc-step-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.cc-step-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cc-step-cta {
    margin-top: 20px;
}

.cc-step-btn {
    display: inline-flex;
    align-items: center;
    background: #c9a45c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cc-step-btn:hover {
    background: #b8923f;
}

.cc-step-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Why Choose Section */
.cc-why-choose {
    background: #f8f8f8;
}

.cc-why-choose .cc-section-title::after {
    background: #c9a45c;
}

.cc-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.cc-why-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.cc-why-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    position: relative;
}

.cc-why-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: #c9a45c;
    border-radius: 50%;
}

.cc-why-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    margin-top: -2px;
    margin-left: -2px;
}

.cc-why-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.cc-why-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* Projects Section */
.cc-projects {
    background: #fff;
}

.cc-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 30px;
}

.cc-project-item {
    text-align: center;
}

.cc-project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cc-project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.cc-project-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

.cc-projects-cta {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.cc-faq {
    background: #f8f8f8;
}

.cc-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.cc-faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cc-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cc-faq-question:hover {
    background: #f8f8f8;
}

.cc-faq-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
}

.cc-faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
}

.cc-faq-icon::before,
.cc-faq-icon::after {
    content: '';
    position: absolute;
    background: #c9a45c;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.cc-faq-icon::before {
    width: 12px;
    height: 2px;
}

.cc-faq-icon::after {
    width: 2px;
    height: 12px;
}

.cc-faq-item[aria-expanded="true"] .cc-faq-icon::after,
.cc-faq-item-open .cc-faq-question .cc-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.cc-faq-item-open .cc-faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

.cc-faq-answer p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

/* Contact Section */
.cc-contact {
    background: linear-gradient(135deg, #c9a45c 0%, #b8923f 100%);
    color: #fff;
    text-align: center;
}

.cc-contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.cc-contact-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.cc-contact-text a {
    color: #fff;
    text-decoration: underline;
}

.cc-contact-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cc-contact-btn:hover {
    background: #2d2d2d;
    transform: scale(1.05);
}

/* Responsive Design */
@media (min-width: 768px) {
    .cc-step-item {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .custom-cabinet-page {
        padding: 0 15px;
    }

    .cc-hero {
        padding: 50px 0;
    }

    .cc-hero-title {
        font-size: 2rem;
    }

    .cc-hero-description {
        font-size: 1rem;
    }

    .cc-section-title {
        font-size: 1.8rem;
    }

    .cc-collections-grid,
    .cc-projects-grid,
    .cc-why-grid {
        grid-template-columns: 1fr;
    }

    .cc-step-reverse {
        direction: ltr;
    }

    .cc-step-item {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .cc-hero-title {
        font-size: 1.6rem;
    }

    .cc-section-title {
        font-size: 1.5rem;
    }

    .custom-cabinet-page section {
        padding: 40px 0;
    }

    .cc-faq-text {
        font-size: 0.95rem;
    }
}

/* Fix for swiper-slide-bg background images */
.elementor-widget-slides .swiper-slide-bg {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Restore Elementor Gallery base behavior overridden by global theme CSS (a{display:inline-block}) */
.page-template-custom-cabinet .elementor-4039 .elementor-widget-gallery .elementor-gallery__container,
.page-template-page-templatescustom-cabinet-php .elementor-4039 .elementor-widget-gallery .elementor-gallery__container {
    display: grid;
    grid-template-columns: repeat(var(--e-gallery-columns-number, 1), minmax(0, 1fr));
    column-gap: var(--e-gallery-horizontal-gutter, 10px);
    row-gap: var(--e-gallery-vertical-gutter, 10px);
}

.page-template-custom-cabinet .elementor-4039 .elementor-widget-gallery .e-gallery-item,
.page-template-custom-cabinet .elementor-4039 .elementor-widget-gallery .elementor-gallery-item,
.page-template-page-templatescustom-cabinet-php .elementor-4039 .elementor-widget-gallery .e-gallery-item,
.page-template-page-templatescustom-cabinet-php .elementor-4039 .elementor-widget-gallery .elementor-gallery-item {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
}

.page-template-custom-cabinet .elementor-4039 .elementor-widget-gallery .e-gallery-image,
.page-template-custom-cabinet .elementor-4039 .elementor-widget-gallery .elementor-gallery-item__image,
.page-template-page-templatescustom-cabinet-php .elementor-4039 .elementor-widget-gallery .e-gallery-image,
.page-template-page-templatescustom-cabinet-php .elementor-4039 .elementor-widget-gallery .elementor-gallery-item__image {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Elementor Toggle border effect - match source site */
.page-template-custom-cabinet .elementor-tab-title,
.page-template-page-templatescustom-cabinet-php .elementor-tab-title {
    border-block-end: 1px solid #d5d8dc;
    transition: none;
}

.page-template-custom-cabinet .elementor-tab-title.elementor-active,
.page-template-page-templatescustom-cabinet-php .elementor-tab-title.elementor-active {
    border-block-end: none;
}

/* Fix Contact form placeholder font-size to match source site (15px) */
.page-template-custom-cabinet .elementor-3479 .elementor-element-bb14377 .elementor-field-textual,
.page-template-page-templatescustom-cabinet-php .elementor-3479 .elementor-element-bb14377 .elementor-field-textual {
    font-size: 15px !important;
    padding: 10px 12px !important;
}

.page-template-custom-cabinet .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::placeholder,
.page-template-page-templatescustom-cabinet-php .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::placeholder {
    font-size: 15px !important;
}

.page-template-custom-cabinet .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::-webkit-input-placeholder,
.page-template-page-templatescustom-cabinet-php .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::-webkit-input-placeholder {
    font-size: 15px !important;
}

.page-template-custom-cabinet .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::-moz-placeholder,
.page-template-page-templatescustom-cabinet-php .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::-moz-placeholder {
    font-size: 15px !important;
}

.page-template-custom-cabinet .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::-ms-input-placeholder,
.page-template-page-templatescustom-cabinet-php .elementor-3479 .elementor-element-bb14377 .elementor-field-textual::-ms-input-placeholder {
    font-size: 15px !important;
}

/* Fluent Forms styling for Custom Cabinet page */
.page-template-custom-cabinet #fluentform_3,
.page-template-page-templatescustom-cabinet-php #fluentform_3 {
    max-width: 100% !important;
}

/* Form fields wrapper */
.page-template-custom-cabinet #fluentform_3 .ff-el-group,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-group {
    margin-bottom: 24px !important;
    padding: 0 !important;
}

/* Field labels */
.page-template-custom-cabinet #fluentform_3 .ff-el-label label,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-label label {
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* Input fields - match Elementor styles */
.page-template-custom-cabinet #fluentform_3 .ff-el-form-control,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-form-control {
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    background-color: #F2F3F8 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    color: #1a1a1a !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Focus state */
.page-template-custom-cabinet #fluentform_3 .ff-el-form-control:focus,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-form-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.3) !important;
}

/* Required field indicator */
.page-template-custom-cabinet #fluentform_3 .ff-label-required,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-label-required {
    color: #c9a45c !important;
}

/* Submit button - match Elementor button */
.page-template-custom-cabinet #fluentform_3 .ff-btn-submit,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-btn-submit {
    font-family: "Montserrat", Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background-color: #FCAF3B !important;
    color: #181918 !important;
    padding: 16px 24px !important;
    border-radius: 30px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    /* width: 100% !important; */
    text-align: center !important;
}

.page-template-custom-cabinet #fluentform_3 .ff-btn-submit:hover,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-btn-submit:hover {
    background-color: #FABC5F !important;
    transform: scale(1.05) !important;
}

/* Error messages */
.page-template-custom-cabinet #fluentform_3 .error_msg,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .error_msg {
    color: #d63638 !important;
    font-size: 14px !important;
    margin-top: 5px !important;
}

/* Success message */
.page-template-custom-cabinet #fluentform_3 .ff-message-success,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-message-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    padding: 15px !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .page-template-custom-cabinet #fluentform_3 .ff-el-group,
    .page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-group {
        margin-bottom: 15px !important;
    }
    
    .page-template-custom-cabinet #fluentform_3 .ff-el-label label,
    .page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-label label {
        font-size: 14px !important;
    }
    
    .page-template-custom-cabinet #fluentform_3 .ff-el-form-control,
    .page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-form-control {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }
    
    .page-template-custom-cabinet #fluentform_3 .ff-btn-submit,
    .page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-btn-submit {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
}

/* Fluent Forms two-column grid layout */
.page-template-custom-cabinet #fluentform_3 fieldset,
.page-template-page-templatescustom-cabinet-php #fluentform_3 fieldset {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove margin from field groups to avoid extra spacing */
.page-template-custom-cabinet #fluentform_3 .ff-el-group,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-group {
    margin-bottom: 0 !important;
}

/* Ensure hidden elements don't affect grid */
.page-template-custom-cabinet #fluentform_3 fieldset > legend,
.page-template-custom-cabinet #fluentform_3 fieldset > input[type="hidden"],
.page-template-page-templatescustom-cabinet-php #fluentform_3 fieldset > legend,
.page-template-page-templatescustom-cabinet-php #fluentform_3 fieldset > input[type="hidden"] {
    display: none !important;
}

/* Full width fields (Message and Submit button) */
.page-template-custom-cabinet #fluentform_3 .ff-el-group:has(textarea),
.page-template-custom-cabinet #fluentform_3 .ff_submit_btn_wrapper,
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff-el-group:has(textarea),
.page-template-page-templatescustom-cabinet-php #fluentform_3 .ff_submit_btn_wrapper {
    grid-column: 1 / -1 !important;
}

/* Mobile: single column layout */
@media (max-width: 767px) {
    .page-template-custom-cabinet #fluentform_3 fieldset,
    .page-template-page-templatescustom-cabinet-php #fluentform_3 fieldset {
        grid-template-columns: 1fr !important;
    }
}

/* Fix Fluent Forms placeholder styles */
.page-template-custom-cabinet #fluentform_3 input[type="text"],
.page-template-custom-cabinet #fluentform_3 input[type="email"],
.page-template-custom-cabinet #fluentform_3 input[type="tel"],
.page-template-custom-cabinet #fluentform_3 select,
.page-template-custom-cabinet #fluentform_3 textarea {
    font-size: 14px !important;
}

/* Placeholder font-size and opacity */
.page-template-custom-cabinet #fluentform_3 input[type="text"]::placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="email"]::placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="tel"]::placeholder,
.page-template-custom-cabinet #fluentform_3 select::placeholder,
.page-template-custom-cabinet #fluentform_3 textarea::placeholder {
    font-size: 14px !important;
    opacity: 0.6 !important;
}

/* WebKit browsers (Chrome, Safari, Edge) */
.page-template-custom-cabinet #fluentform_3 input[type="text"]::-webkit-input-placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="email"]::-webkit-input-placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="tel"]::-webkit-input-placeholder,
.page-template-custom-cabinet #fluentform_3 select::-webkit-input-placeholder,
.page-template-custom-cabinet #fluentform_3 textarea::-webkit-input-placeholder {
    font-size: 14px !important;
    opacity: 0.6 !important;
}

/* Mozilla Firefox */
.page-template-custom-cabinet #fluentform_3 input[type="text"]::-moz-placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="email"]::-moz-placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="tel"]::-moz-placeholder,
.page-template-custom-cabinet #fluentform_3 select::-moz-placeholder,
.page-template-custom-cabinet #fluentform_3 textarea::-moz-placeholder {
    font-size: 14px !important;
    opacity: 0.6 !important;
}

/* Internet Explorer 10-11 */
.page-template-custom-cabinet #fluentform_3 input[type="text"]:-ms-input-placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="email"]:-ms-input-placeholder,
.page-template-custom-cabinet #fluentform_3 input[type="tel"]:-ms-input-placeholder,
.page-template-custom-cabinet #fluentform_3 select:-ms-input-placeholder,
.page-template-custom-cabinet #fluentform_3 textarea:-ms-input-placeholder {
    font-size: 14px !important;
    opacity: 0.6 !important;
}

/* Textarea vertical alignment and padding */
.page-template-custom-cabinet #fluentform_3 textarea {
    vertical-align: top !important;
    padding: 5px 14px !important;
}
