/* ──────────────────────────────────────────────────────────
   Ippocrate Recesso Online – frontend.css v1.0.0
   ────────────────────────────────────────────────────────── */

.ippr-recesso-wrapper {
    max-width: 640px;
    margin: 0 auto;
    font-family: Georgia, serif;
    color: #333;
}

/* Box principale */
.ippr-box {
    background: #ffffff;
    border: 1px solid #d8dde2;
    border-radius: 6px;
    padding: 32px 36px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.ippr-box-confirm {
    border-top: 4px solid #e67e22;
}

.ippr-box-success {
    border-top: 4px solid #27ae60;
}

/* Header */
.ippr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ippr-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1a3a2a;
    font-weight: bold;
    line-height: 1.2;
}

.ippr-icon {
    font-size: 26px;
    line-height: 1;
    color: #1a3a2a;
}

.ippr-icon-warn { color: #e67e22; }
.ippr-icon-ok   { color: #27ae60; }

/* Intro */
.ippr-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ebebeb;
}

/* Form groups */
.ippr-form-group {
    margin-bottom: 18px;
}

.ippr-form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-family: Arial, sans-serif;
}

.ippr-req {
    color: #c0392b;
}

.ippr-form-group input[type="text"],
.ippr-form-group input[type="email"],
.ippr-form-group input[type="date"],
.ippr-form-group select,
.ippr-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    background: #fafbfc;
    box-sizing: border-box;
    transition: border-color .2s;
}

.ippr-form-group input:focus,
.ippr-form-group select:focus,
.ippr-form-group textarea:focus {
    outline: none;
    border-color: #1a3a2a;
    background: #ffffff;
}

.ippr-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.ippr-field-hint {
    font-size: 11px;
    color: #888;
    margin: 4px 0 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* Privacy checkbox */
.ippr-privacy-group {
    background: #f8f9fa;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.ippr-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal !important;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.ippr-checkbox-label input[type="checkbox"] {
    width: 17px;
    min-width: 17px;
    height: 17px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #1a3a2a;
}

.ippr-checkbox-label a {
    color: #1a3a2a;
    text-decoration: underline;
}

.ippr-checkbox-label a:hover {
    color: #0e2318;
}

/* Errori */
.ippr-errors {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #c0392b;
    line-height: 1.6;
}

/* Recap step 2 */
.ippr-recap {
    background: #f8f9fa;
    border-left: 4px solid #1a3a2a;
    border-radius: 0 4px 4px 0;
    padding: 16px 20px;
    margin: 16px 0 24px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #444;
    line-height: 1.8;
}

.ippr-recap strong {
    color: #1a3a2a;
}

/* Pulsanti */
.ippr-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background .2s, opacity .2s;
    line-height: 1;
}

.ippr-btn-primary {
    background: #1a3a2a;
    color: #ffffff;
    width: 100%;
    padding: 14px 24px;
}

.ippr-btn-primary:hover {
    background: #0e2318;
    color: #ffffff;
}

.ippr-btn-danger {
    background: #c0392b;
    color: #ffffff;
}

.ippr-btn-danger:hover {
    background: #962d22;
    color: #ffffff;
}

.ippr-btn-secondary {
    background: #ecf0f1;
    color: #333;
}

.ippr-btn-secondary:hover {
    background: #dce3e5;
    color: #333;
}

.ippr-btn-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin: 0 0 16px;
}

/* Nota legale */
.ippr-legal-note {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #ebebeb;
    font-family: Arial, sans-serif;
}

/* Success */
#ippr-success-msg {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 18px 20px;
    margin: 16px 0;
    font-size: 14px;
    color: #1a6b2a;
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

/* Loader */
.ippr-loader {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-family: Arial, sans-serif;
}

.ippr-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #e0e0e0;
    border-top-color: #1a3a2a;
    border-radius: 50%;
    animation: ippr-spin .8s linear infinite;
    margin: 0 auto 14px;
}

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

/* Responsive */
@media (max-width: 600px) {
    .ippr-box {
        padding: 22px 18px;
    }
    .ippr-btn-row {
        flex-direction: column;
    }
    .ippr-btn {
        width: 100%;
    }
}
