@charset "utf-8";
/* ===== ОСНОВНЫЕ СТИЛИ ===== */
body {
    background: #ffffff;
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333333;
}

fieldset {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 20px auto;
    padding: 30px;
}

h1 {
    color: #212529;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

h2 {
    color: #495057;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.form__item {
    margin-bottom: 20px;
}

.form__item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form__input {
    position: relative;
}

.form__input input[type="text"],
.form__input input[type="email"],
.form__input select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #212529;
}

.form__input input:focus,
.form__input select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.form__input input[type="checkbox"] {
    width: auto;
    display: inline-block;
    margin-right: 10px;
}

.form__item label a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #adb5bd;
}

.form__item label a:hover {
    color: #212529;
    border-bottom: 1px solid #212529;
}

.button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.button:hover {
    background: #495057;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.button:active {
    background: #212529;
    transform: translateY(0);
}

.success-container {
    text-align: center;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 40px auto;
    animation: scaleIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon span {
    font-size: 40px;
    color: white;
}

.success-title {
    font-size: 28px;
    color: #212529;
    margin-bottom: 20px;
}

.success-email {
    font-size: 16px;
    color: #495057;
    font-weight: 600;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    margin: 20px 0;
}

.success-note {
    font-size: 14px;
    color: #6c757d;
    margin-top: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form__hint {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    margin-top: 20px;
}

span[style*="color:red"] {
    display: block;
    margin-top: 5px;
    font-size: 12px !important;
    color: #dc3545 !important;
}

#tagree {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    margin: 10px 0;
}

table {
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body { padding: 10px; }
    fieldset { padding: 20px; }
    h1 { font-size: 20px; }
    h2 { font-size: 16px; }
}

/* ===== СТИЛИ ДЛЯ ПИСЕМ (оставляем как есть) ===== */
.email-card {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.email-header {
    background: #343a40;
    padding: 30px;
    text-align: center;
}

.email-header h1 {
    color: white;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.email-header p {
    color: rgba(255,255,255,0.9);
    margin: 10px 0 0;
    font-size: 16px;
}

.email-content {
    padding: 40px;
}

.greeting {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.greeting strong {
    color: #495057;
}

.message {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    border-left: 4px solid #6c757d;
}

.details {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 140px;
    font-weight: 600;
    color: #495057;
}

.detail-value {
    flex: 1;
    color: #333;
}

.footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.footer p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.footer a {
    color: #495057;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.data-table tr {
    border-bottom: 1px solid #e9ecef;
}

.data-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.data-table td:first-child {
    font-weight: 600;
    color: #495057;
    width: 180px;
    background: #e9ecef;
}

.highlight {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    background: #6c757d;
    color: white;
}

h2 strong {
    color: #212529;
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
}

/* ===== СТИЛИ ДЛЯ ТАБЛИЦ УЧАСТНИКОВ ===== */
table[border="1"] {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

table[border="1"] tr {
    border-bottom: 1px solid #e9ecef;
}

table[border="1"] tr:last-child {
    border-bottom: none;
}

table[border="1"] td {
    padding: 12px 15px;
    vertical-align: top;
    border: none;
}

table[border="1"] td:first-child {
    font-weight: 600;
    color: #495057;
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

table[border="1"] td:last-child {
    color: #333;
    background: #ffffff;
}

table[border="1"] tr[bgcolor="#deeaf6"] td {
    background: #e9ecef;
}

/* ===== СТИЛИ ДЛЯ КНОПКИ УДАЛЕНИЯ ===== */
form[align="right"] {
    margin: 10px 0 20px;
    text-align: right;
}

input[type="submit"][value="Удалить"] {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

input[type="submit"][value="Удалить"]:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* ===== СТИЛИ ДЛЯ ССЫЛКИ НА CSV ===== */
a[style*="background:#deeaf6"] {
    display: inline-block;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    margin: 20px auto !important;
    text-align: center !important;
    width: fit-content !important;
}

a[style*="background:#deeaf6"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
}

/* ===== СООБЩЕНИЕ ОБ ОТСУТСТВИИ УЧАСТНИКОВ ===== */
p[style*="text-align:center"] {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    body { padding: 10px; }
    fieldset { padding: 20px; }
    
    table[border="1"] td:first-child {
        width: 180px;
    }
    
    a[style*="background:#deeaf6"] {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}
