* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --bg-color: #ecf0f1;
    --white: #ffffff;
    --text-color: #34495e;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 500;
    opacity: 0.95;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.goal-box {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin-top: 20px;
    text-align: left;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

/* Form Sections */
.form-section {
    padding: 40px;
    border-bottom: 2px solid var(--bg-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-number {
    background: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-description {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.required {
    color: var(--accent-color);
    font-weight: bold;
}

/* Input Styles */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

input[type="text"]:disabled,
input[type="number"]:disabled,
textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkbox and Radio Styles */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover,
.radio-label:hover {
    background-color: var(--bg-color);
}

input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.form-group-inline label {
    margin: 0;
    white-space: nowrap;
}

.form-group-inline input {
    flex: 1;
    min-width: 200px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: var(--bg-color);
}

.data-table input[type="text"],
.data-table input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
}

/* Conditional Sections */
.conditional-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

/* Club Entry Styles */
.club-entry {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.club-entry:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.club-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-color);
}

.club-header h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0;
}

.btn-add-club,
.btn-remove-club {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-add-club {
    background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
    color: white;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-add-club:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-remove-club {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c0392b 100%);
    color: white;
    padding: 8px 15px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-remove-club:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Buttons */
.form-actions {
    padding: 40px;
    text-align: center;
    background: var(--bg-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2980b9 100%);
    color: var(--white);
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Success and Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 1.1em;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 1.1em;
    text-align: center;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 25px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    .form-section {
        padding: 25px 20px;
    }

    .form-section h3 {
        font-size: 1.3rem;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .btn-primary {
        width: 100%;
        padding: 15px;
    }

    .form-group-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group-inline label {
        margin-bottom: 5px;
    }

    .form-group-inline input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .section-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .data-table {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .form-actions {
        display: none;
    }

    .form-section {
        page-break-inside: avoid;
    }
}

