/**
 * CamperCard Account Multiruolo - Dashboard Styles
 * Stili per le sezioni personalizzate nel My Account WooCommerce.
 *
 * @package CamperCard
 * @since 1.0.0
 */

/* =========================================
   LAYOUT SEZIONI ACCOUNT
   ========================================= */

.cc-account-section {
    max-width: 700px;
    margin: 0 auto;
}

.cc-account-section h2 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
}

/* =========================================
   FORM STYLES
   ========================================= */

.cc-account-section form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cc-account-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.92em;
    color: #444;
}

.cc-account-section input[type="text"],
.cc-account-section input[type="email"],
.cc-account-section input[type="tel"],
.cc-account-section input[type="url"],
.cc-account-section textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    transition: border-color 0.2s ease;
}

.cc-account-section input:focus,
.cc-account-section textarea:focus {
    border-color: #688e6a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(104, 142, 106, 0.15);
}

.cc-account-section textarea {
    resize: vertical;
    min-height: 80px;
}

/* =========================================
   BUTTONS
   ========================================= */

.cc-account-section button[type="submit"] {
    background: #688e6a;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s ease;
    align-self: flex-start;
}

.cc-account-section button[type="submit"]:hover {
    background: #567a58;
}

.cc-remove-row {
    background: #e53935;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s ease;
}

.cc-remove-row:hover {
    background: #c62828;
}

/* =========================================
   FIELDSETS (CAMPI RIPETIBILI)
   ========================================= */

.cc-account-section fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin: 0;
}

.cc-account-section fieldset legend {
    font-weight: 600;
    padding: 0 8px;
    font-size: 0.95em;
    color: #333;
}

/* =========================================
   MESSAGGI FEEDBACK
   ========================================= */

[id$="-message"] {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.92em;
}

/* =========================================
   ROLE WELCOME BOX
   ========================================= */

.cc-role-welcome {
    background: #f0f7ff;
    border: 1px solid #b3d4fc;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.cc-role-welcome p {
    margin: 0;
    font-size: 1.05em;
    color: #1a3a5c;
}

/* =========================================
   FORM MIGRAZIONE
   ========================================= */

.cc-migration-form {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.cc-migration-form h3 {
    margin: 0 0 12px 0;
    font-size: 1.1em;
    color: #333;
}

.cc-migration-form p {
    margin: 0 0 14px 0;
    font-size: 0.92em;
    color: #666;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
    .cc-account-section {
        max-width: 100%;
    }

    .cc-account-section fieldset {
        padding: 12px;
    }

    [class*="sede-row"],
    [class*="tel-row"],
    [class*="email-row"] {
        flex-direction: column;
    }

    .cc-migration-form form {
        flex-direction: column;
    }

    .cc-migration-form button[type="submit"] {
        width: 100%;
    }
}
