/**
 * Dream Clean Services - Get a Quote Form Styles
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* Form wrapper */
.dreamclean-form-wrapper {
    font-family: 'Lato', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Honeypot */
.dreamclean-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Loading overlay - fits the form */
.dreamclean-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 16px;
}

.dreamclean-loading-overlay.active {
    display: flex;
}

.dreamclean-loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: dreamclean-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes dreamclean-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dreamclean-loading-text {
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 600;
}

/* Main heading */
.dreamclean-form-heading {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px 0;
    text-align: center;
}

/* Steps */
.dreamclean-step {
    display: none;
}

.dreamclean-step.active {
    display: block;
}

/* Step content */
.dreamclean-step-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #000000 50%, #0d0d0d 100%);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 500px;
}

/* Step title */
.dreamclean-step-title {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.dreamclean-title-italic {
    font-style: italic;
}

.dreamclean-step-instruction {
    font-size: 16px;
    color: #ccc;
    margin: 0 0 35px 0;
}

/* Progress indicator */
.dreamclean-progress {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.dreamclean-progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dreamclean-progress-step.active {
    background-color: #222;
    color: #fff;
}

.dreamclean-progress-step.completed {
    background-color: #4CAF50;
    color: #fff;
}

.dreamclean-progress-step-extra {
    display: none;
}

/* Select dropdown */
.dreamclean-select-wrapper {
    max-width: 450px;
    margin: 0 auto 30px;
}

.dreamclean-select {
    width: 100%;
    height: 62px;
    padding: 0 50px 0 20px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.dreamclean-select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Option cards */
.dreamclean-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
}

#domestic-options {
    grid-template-columns: repeat(5, 1fr);
    max-width: 750px;
}

#tenancy-options {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
}

.dreamclean-option-card {
    cursor: pointer;
    padding: 20px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #fff;
    border: 2px solid transparent;
}

.dreamclean-option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.dreamclean-option-card.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.dreamclean-option-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
}

.dreamclean-option-card span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Room count grid */
.dreamclean-room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
    max-width: 600px;
    margin: 30px auto 40px;
    text-align: left;
}

.dreamclean-room-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

/* Extra services */
.dreamclean-extras-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 40px auto 50px;
    max-width: 650px;
}

.dreamclean-extra-option {
    text-align: center;
    min-width: 140px;
}

.dreamclean-extra-option > span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.dreamclean-toggle {
    width: 80px;
    height: 40px;
    border-radius: 25px;
    background-color: #333;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dreamclean-toggle:hover {
    transform: scale(1.05);
    background-color: #444;
}

.dreamclean-toggle-icon {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.dreamclean-toggle.active {
    background-color: #4CAF50;
}

.dreamclean-toggle.active:hover {
    background-color: #43a047;
}

/* Form fields */
.dreamclean-form-fields {
    max-width: 550px;
    margin: 0 auto;
}

.dreamclean-field {
    margin-bottom: 20px;
}

.dreamclean-field-note {
    font-size: 15px;
    color: #ccc;
    margin: 25px 0 30px;
    line-height: 1.5;
}

/* Contact input fields - name, email, phone */
.dreamclean-input-name,
.dreamclean-input-email,
.dreamclean-input-phone {
    width: 100%;
    height: 62px;
    padding: 0 20px !important;
    padding-left: 20px !important;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.dreamclean-input-name:focus,
.dreamclean-input-email:focus,
.dreamclean-input-phone:focus {
    outline: none;
    border-color: #4CAF50;
}

.dreamclean-input-name::placeholder,
.dreamclean-input-email::placeholder,
.dreamclean-input-phone::placeholder {
    color: #999;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Textarea - message field */
.dreamclean-textarea {
    width: 100%;
    height: 220px;
    padding: 20px !important;
    padding-left: 20px !important;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    resize: none;
}

.dreamclean-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.dreamclean-textarea::placeholder {
    color: #999;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Buttons */
.dreamclean-btn-wrapper {
    max-width: 550px;
    margin: 0 auto;
}

.dreamclean-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 40px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    background-color: #e0e0e0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.dreamclean-btn:hover {
    background-color: #c0c0c0;
    transform: translateY(-2px);
}

.dreamclean-btn-submit {
    background-color: #4CAF50;
    color: #fff;
}

.dreamclean-btn-submit:hover {
    background-color: #43a047;
}

.dreamclean-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 25px;
    padding: 12px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dreamclean-btn-link:hover {
    color: #fff;
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

/* =====================
   TABLET (max 1024px)
   ===================== */
@media (max-width: 1024px) {
    .dreamclean-form-heading {
        font-size: 48px;
    }

    .dreamclean-step-content {
        padding: 50px 40px;
        min-height: 450px;
    }

    .dreamclean-step-title {
        font-size: 30px;
    }

    .dreamclean-options-grid {
        gap: 15px;
    }

    #domestic-options {
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
    }

    .dreamclean-option-card img {
        width: 60px;
        height: 60px;
    }

    .dreamclean-select {
        height: 58px;
    }
}

/* =====================
   MOBILE (max 767px)
   ===================== */
@media (max-width: 767px) {
    .dreamclean-form-wrapper {
        padding: 5px;
    }

    .dreamclean-form-heading {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .dreamclean-step-content {
        padding: 30px 15px;
        border-radius: 10px;
        min-height: auto;
    }

    .dreamclean-step-title {
        font-size: 22px;
    }

    .dreamclean-step-instruction {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .dreamclean-progress {
        gap: 10px;
        margin-top: 25px;
        padding-top: 20px;
    }

    .dreamclean-progress-step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .dreamclean-select-wrapper {
        max-width: 100%;
    }

    .dreamclean-select {
        height: 52px;
        font-size: 14px;
        padding-left: 15px !important;
    }

    .dreamclean-options-grid,
    #domestic-options,
    #tenancy-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
    }

    .dreamclean-option-card {
        padding: 12px 8px;
    }

    .dreamclean-option-card img {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .dreamclean-option-card span {
        font-size: 11px;
    }

    .dreamclean-room-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 100%;
    }

    .dreamclean-extras-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .dreamclean-extra-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 250px;
    }

    .dreamclean-extra-option > span {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 13px;
    }

    .dreamclean-form-fields {
        max-width: 100%;
    }

    .dreamclean-field {
        margin-bottom: 15px;
    }

    .dreamclean-input-name,
    .dreamclean-input-email,
    .dreamclean-input-phone {
        height: 52px;
        padding: 0 15px !important;
        padding-left: 15px !important;
        font-size: 14px;
    }

    .dreamclean-textarea {
        height: 160px;
        padding: 15px !important;
        padding-left: 15px !important;
        font-size: 14px;
    }

    .dreamclean-btn-wrapper {
        max-width: 100%;
    }

    .dreamclean-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .dreamclean-btn-link {
        margin-top: 15px;
        font-size: 13px;
    }

    .dreamclean-field-note {
        font-size: 13px;
        margin: 20px 0 25px;
    }

    .dreamclean-loading-text {
        font-size: 16px;
    }

    .dreamclean-loading-spinner {
        width: 45px;
        height: 45px;
    }
}
