/* Wrapper general del módulo */
#sabaterepair-wrapper {
    max-width: 520px;
    margin: 40px auto;
    padding: 24px 22px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #484848;
}

/* Formulario */
#sabaterepair-form {
    margin-bottom: 18px;
}

.sabaterepair-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #484848;
	text-align: left;
}

.sabaterepair-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sabaterepair-input {
    flex: 1 1 180px;
    padding: 8px 12px;              /* un poco menos de alto ya en desktop */
    border-radius: 6px;
    border: 1px solid #cccccc;
    font-size: 14px;
    line-height: 1.3;
    color: #484848;
    font-family: inherit;
    box-sizing: border-box;         /* para evitar inflado por estilos globales */
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    background-color: #fafafa;
}

.sabaterepair-input::placeholder {
    color: #a0a0a0;
    font-size: 13px;
}

.sabaterepair-input:focus {
    outline: none;
    border-color: #5b794e;
    box-shadow: 0 0 0 2px rgba(91, 121, 78, 0.15);
    background-color: #ffffff;
}

/* Botón */
.sabaterepair-button {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    background: #5b794e;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.sabaterepair-button:hover {
    background: #4c655f;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.sabaterepair-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.sabaterepair-help {
    margin-top: 8px;
    font-size: 12px;
    color: #777777;
}

/* Loading */
.sabaterepair-loading {
    text-align: center;
    margin: 16px 0 10px;
    font-family: inherit;
    color: #484848;
}

.sabaterepair-loading p {
    margin-top: 8px;
    font-size: 13px;
    color: #666666;
}

/* Spinner */
.sabaterepair-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    border-top-color: #5b794e;
    animation: sabaterepair-spin 0.7s linear infinite;
    margin: 0 auto;
}

@keyframes sabaterepair-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Resultado: caja que viene del controller (state-box) */
#sabaterepair-result .state-box {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    background: #fafafa;
    margin-top: 10px;
}

#sabaterepair-result .number-state {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #777777;
    margin-bottom: 12px;
}

#sabaterepair-result h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #484848;
    font-weight: 700;
}

#sabaterepair-result img {
    max-width: 128px;
    height: auto;
    margin: 20px auto 20px;
    display: block;
}

#sabaterepair-result p {
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
    margin: 0;
}

/* Mensaje de no resultado o error */
#sabaterepair-result .no-result {
    margin-top: 10px;
    font-size: 14px;
    color: #b23b3b;
    font-weight: 500;
}

/* Versión mobile: ajustes específicos */
@media (max-width: 576px) {
    #sabaterepair-wrapper {
        margin: 20px auto;
        padding: 16px 14px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    }

    .sabaterepair-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sabaterepair-input {
        font-size: 13px;
        padding: 7px 10px;          /* menos padding vertical en mobile */
        line-height: 1.25;
    }

    .sabaterepair-button {
        width: 100%;
        text-align: center;
        padding: 9px 14px;          /* algo más compacto pero “tap-friendly” */
        font-size: 13px;
        letter-spacing: 0.05em;
    }

    .sabaterepair-help {
        font-size: 11px;
    }

    #sabaterepair-result h2 {
        font-size: 18px;
    }

    #sabaterepair-result p {
        font-size: 13px;
    }
}