/* ==========================================================================
   TPT Inscription - Formulaire d'adhésion
   ========================================================================== */

.tpt-inscription-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.6;
}

/* --- Tarifs --- */

.tpt-tarifs {
    margin-bottom: 2rem;
}

.tpt-tarifs h3 {
    text-transform: uppercase;
    font-size: 1.3rem;
}

.tpt-tarif-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.tpt-tarif-prix {
    font-weight: 700;
    min-width: 50px;
    color: #8b3a2f;
    font-size: 1.05rem;
}

.tpt-tarif-desc em {
    color: #777;
    font-size: 0.9em;
}

/* --- Documents --- */

.tpt-documents {
    margin-bottom: 2rem;
}

.tpt-documents h3 {
    text-transform: uppercase;
    font-size: 1.1rem;
}

.tpt-documents ul {
    padding-left: 1.5rem;
}

.tpt-documents li {
    margin-bottom: 0.4rem;
}

/* --- Separator --- */

.tpt-separator {
    border: none;
    border-top: 2px solid #e8e0da;
    margin: 2rem 0;
}

/* --- Sections --- */

.tpt-section {
    margin-bottom: 2rem;
}

.tpt-section h4 {
    color: #8b3a2f;
    border-bottom: 2px solid #8b3a2f;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

/* --- Form rows & groups --- */

.tpt-form-row {
    display: flex;
    gap: 1rem;
}

.tpt-form-row > .tpt-form-group {
    flex: 1;
}

.tpt-form-group {
    margin-bottom: 1rem;
}

.tpt-form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.tpt-form-group input[type="text"],
.tpt-form-group input[type="email"],
.tpt-form-group input[type="tel"],
.tpt-form-group input[type="date"],
.tpt-form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.tpt-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
}

.tpt-form-group input:focus,
.tpt-form-group select:focus {
    border-color: #8b3a2f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 58, 47, 0.12);
}

.tpt-form-group input.tpt-field-error,
.tpt-form-group select.tpt-field-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

/* --- Person blocks --- */

.tpt-person-block {
    background: #faf8f6;
    border: 1px solid #e8e0da;
    border-radius: 8px;
    padding: 1.25rem 1.25rem 0.25rem;
    margin-bottom: 1rem;
}

.tpt-person-block:last-child {
    margin-bottom: 0;
}

/* --- Radio & checkbox groups --- */

.tpt-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
}

.tpt-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 400;
    cursor: pointer;
}

.tpt-radio-group input[type="radio"] {
    accent-color: #8b3a2f;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.tpt-checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    cursor: pointer;
}

.tpt-checkbox-label input[type="checkbox"] {
    accent-color: #8b3a2f;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- Prix --- */

.tpt-prix-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.tpt-prix-item {
    display: flex;
    justify-content: space-between;
    flex: 1;
    padding: 0.6rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

.tpt-prix-value {
    font-weight: 700;
    color: #8b3a2f;
}

.tpt-prix-total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-top: 2px solid #8b3a2f;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.tpt-prix-total .tpt-prix-value {
    font-size: 1.25rem;
}

/* --- Submit button --- */

.tpt-submit-btn {
    display: inline-block;
    background: #8b3a2f;
    color: #fff;
    border: none;
    padding: 0.85rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

.tpt-submit-btn:hover {
    background: #a0522d;
}

.tpt-submit-btn:active {
    transform: scale(0.98);
}

.tpt-submit-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
    transform: none;
}

/* --- Messages --- */

.tpt-message {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.tpt-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tpt-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Responsive --- */

@media (max-width: 640px) {
    .tpt-form-row {
        flex-direction: column;
        gap: 0;
    }

    .tpt-prix-row {
        flex-direction: column;
        gap: 0;
    }

    .tpt-tarif-item {
        flex-direction: column;
        gap: 0.2rem;
    }

    .tpt-person-block {
        padding: 1rem 1rem 0.25rem;
    }

    .tpt-submit-btn {
        width: 100%;
        text-align: center;
    }
}
