/* ==========================================================
   JIREH Painting and Cleaning - Multi-Step Estimate Form
   Estilos con prefijo "gdme-" para evitar conflictos con el tema
   ========================================================== */

.gdme-wrapper {
    --gdme-base: #D34A4A;
    --gdme-base-dark: #B40303;
    --gdme-base-tint: #fdf1f1;
    --gdme-base-tint-2: #fbe3e3;
    --gdme-accent: #252525;
    --gdme-accent-dark: #020202;
    --gdme-gray: #555555;
    --gdme-font: 'Poppins', Arial, sans-serif;

    width: 100%;
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
    box-sizing: border-box;
    font-family: var(--gdme-font);
}

.gdme-wrapper *,
.gdme-wrapper *::before,
.gdme-wrapper *::after {
    box-sizing: border-box;
}

.gdme-card {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    padding: 0;
    overflow: hidden;
    color: var(--gdme-gray);
}

/* !important en width/margin para que el tema no recorte el encabezado */
.gdme-wrapper .gdme-header {
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    text-align: center;
    padding: 2rem 2.5rem 1.75rem;
    background-color: var(--gdme-accent);
    border-bottom: 4px solid var(--gdme-base);
}

/* El padding va en el form y en el texto del teléfono (no en .gdme-body)
   para que funcione aunque el tema resetee el padding de los div */
.gdme-wrapper .gdme-card .gdme-body {
    padding: 0 !important;
}

.gdme-wrapper .gdme-card .gdme-form {
    padding: 2rem 2.5rem 0 !important;
    margin: 0 !important;
}

.gdme-wrapper .gdme-card .gdme-call-text {
    padding: 0 2.5rem 2rem !important;
    margin: 1.5rem 0 0 !important;
}

.gdme-logo {
    max-height: 110px;
    margin: 0 auto 15px;
    display: block;
}

/* Selectores con .gdme-wrapper + !important para ganarle a los h1/h2 globales del tema (Elementor) */
.gdme-wrapper .gdme-title {
    font-family: var(--gdme-font) !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.gdme-subtitle {
    color: #e6e6e6;
    margin: 0;
}

.gdme-dots {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.gdme-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: #555555;
    transition: all 0.2s ease;
}

.gdme-dot--active {
    background-color: var(--gdme-base);
    transform: scale(1.4);
}

.gdme-dot--done {
    background-color: var(--gdme-base);
    opacity: 0.6;
}

.gdme-step {
    display: none;
    animation: gdme-fade-in 0.4s ease-out;
}

.gdme-step--active {
    display: block;
}

@keyframes gdme-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gdme-wrapper .gdme-step-title {
    font-family: var(--gdme-font) !important;
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.gdme-step-subtitle {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 4px;
}

.gdme-paragraph {
    margin-bottom: 1.5rem;
    color: #374151;
    font-weight: 500;
}

.gdme-req {
    color: #ef4444;
}

.gdme-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.gdme-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gdme-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.gdme-col-3 {
    grid-column: span 3;
}

.gdme-col-2 {
    grid-column: span 2;
}

.gdme-col-1 {
    grid-column: span 1;
}

.gdme-stack>div {
    margin-bottom: 1rem;
}

.gdme-mb {
    margin-bottom: 1.5rem;
}

.gdme-mt {
    margin-top: 2rem;
}

.gdme-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: #374151;
}

.gdme-label--sm {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #6b7280;
}

.gdme-label--lg {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.gdme-input,
.gdme-select,
.gdme-textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
    font-family: var(--gdme-font);
    transition: border-color 0.3s;
    background-color: #ffffff;
    font-size: 1rem;
    color: #333;
}

.gdme-input:focus,
.gdme-select:focus,
.gdme-textarea:focus {
    outline: none;
    border-color: var(--gdme-base);
    box-shadow: 0 0 0 3px rgba(211, 74, 74, 0.15);
}

.gdme-input.gdme-invalid,
.gdme-select.gdme-invalid,
.gdme-textarea.gdme-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.gdme-hidden-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selection cards (Step 1 & 2) */
.gdme-selection-card {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 160px;
    transition: all 0.2s;
    position: relative;
}

.gdme-selection-card--service {
    height: 140px;
    padding: 1rem;
}

.gdme-selection-card:hover {
    border-color: var(--gdme-base);
    background-color: #fafafa;
}

.gdme-selection-card.gdme-selected {
    border-color: var(--gdme-base);
    background-color: var(--gdme-base-tint);
    box-shadow: 0 0 0 2px var(--gdme-base);
}

.gdme-icon-box {
    background-color: var(--gdme-base-tint-2);
    color: var(--gdme-base);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.gdme-icon-box--sm {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.gdme-selection-card:hover .gdme-icon-box,
.gdme-selection-card.gdme-selected .gdme-icon-box {
    background-color: var(--gdme-base);
    color: #fff;
}

.gdme-card-label {
    font-weight: 700;
    color: #374151;
}

.gdme-card-label--sm {
    font-size: 0.85rem;
    line-height: 1.2;
}

.gdme-card-sublabel {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Schedule options (Step 4) */
.gdme-schedule-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.gdme-schedule-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gdme-schedule-icon-box {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: #fff;
    color: #9ca3af;
    font-size: 2.2rem;
    transition: all 0.2s;
}

.gdme-schedule-label {
    font-weight: 700;
    color: #6b7280;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.gdme-schedule-option:hover .gdme-schedule-icon-box {
    border-color: var(--gdme-base);
    color: var(--gdme-base);
}

.gdme-schedule-option input:checked~.gdme-schedule-icon-box,
.gdme-schedule-option .gdme-hidden-input:checked+.gdme-schedule-icon-box {
    border-color: var(--gdme-base);
    background-color: var(--gdme-base-tint);
    color: var(--gdme-base);
}

.gdme-schedule-option input:checked~.gdme-schedule-label,
.gdme-schedule-option .gdme-hidden-input:checked+.gdme-schedule-icon-box+.gdme-schedule-label {
    color: var(--gdme-base);
}

.gdme-schedule-box {
    background-color: var(--gdme-base-tint);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gdme-base-tint-2);
}

/* Nav buttons */
.gdme-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.gdme-nav--final {
    align-items: center;
}

.gdme-btn-back {
    background: none;
    border: none;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.gdme-btn-back:hover {
    color: #1f2937;
}

.gdme-btn-next,
.gdme-btn-submit {
    border: none;
    cursor: pointer;
    font-weight: 700;
    border-radius: 100px;
    padding: 0.85rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.gdme-btn-next {
    background-color: var(--gdme-base);
    color: #fff;
}

.gdme-btn-next:hover {
    background-color: var(--gdme-base-dark);
}

.gdme-btn-submit {
    background-color: var(--gdme-accent);
    color: #fff;
    font-size: 1.05rem;
    padding: 0.85rem 2.5rem;
}

.gdme-btn-submit:hover:not(:disabled) {
    background-color: var(--gdme-base);
}

.gdme-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gdme-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.gdme-message {
    padding: 12px;
    border-radius: 8px;
    display: none;
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.gdme-message.gdme-message--info {
    display: block;
    background-color: var(--gdme-base-tint-2);
    color: var(--gdme-base-dark);
}

.gdme-message.gdme-message--success {
    display: block;
    background-color: #dcfce7;
    color: #15803d;
}

.gdme-message.gdme-message--error {
    display: block;
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Success screen (replaces step 5 content) */
.gdme-success {
    text-align: center;
    padding: 2.5rem 0;
}

.gdme-success-icon {
    width: 80px;
    height: 80px;
    background-color: #dcfce7;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.gdme-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.gdme-success p {
    color: #4b5563;
    margin: 0.25rem 0;
}

.gdme-call-text {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

.gdme-call-link {
    color: var(--gdme-base);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 640px) {
    .gdme-wrapper {
        padding: 2rem 1rem;
    }

    .gdme-wrapper .gdme-header {
        padding: 1.5rem;
    }

    .gdme-wrapper .gdme-card .gdme-form {
        padding: 1.5rem 1.25rem 0 !important;
    }

    .gdme-wrapper .gdme-card .gdme-call-text {
        padding: 0 1.25rem 1.5rem !important;
    }

    .gdme-grid-2,
    .gdme-grid-3,
    .gdme-grid-6 {
        grid-template-columns: 1fr;
    }

    .gdme-col-1,
    .gdme-col-2,
    .gdme-col-3 {
        grid-column: span 1;
    }

    .gdme-schedule-options {
        gap: 1.5rem;
    }
}
