/* ==========================================================
   GD Painting - Multi-Step Estimate Form
   Estilos con prefijo "gdme-" para evitar conflictos con el tema
   ========================================================== */

.gdme-wrapper {
    --gdme-base: #1e70bf;
    --gdme-base-dark: #155a9c;
    --gdme-accent: #9333ea;
    --gdme-accent-dark: #7e22ce;
    --gdme-gray: #333333;
    --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: 2.5rem;
    color: var(--gdme-gray);
}

.gdme-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gdme-logo {
    max-height: 70px;
    margin: 0 auto 15px;
    display: block;
}

.gdme-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1f2937;
}

.gdme-subtitle {
    color: #4b5563;
    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: #d1d5db;
    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.5;
}

.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-step-title {
    font-size: 1.25rem;
    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(30, 112, 191, 0.1);
}

.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: #f8fafc;
}

.gdme-selection-card.gdme-selected {
    border-color: var(--gdme-base);
    background-color: #eff6ff;
    box-shadow: 0 0 0 2px var(--gdme-base);
}

.gdme-icon-box {
    background-color: #e0f2fe;
    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: #eff6ff;
    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: #eff6ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #dbeafe;
}

/* 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: 0.5rem;
    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-accent-dark);
}

.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: #dbeafe;
    color: #1d4ed8;
}

.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-card {
        padding: 1.5rem;
    }

    .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;
    }
}
