* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #5b87c6 0%, #4a6fa5 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.logo-section {
    background: white;
    padding: 20px 30px;
    text-align: center;
    border-bottom: 3px solid #5b87c6;
}

.logo-section img {
    max-height: 80px;
    width: auto;
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.form-container {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #5b87c6;
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #5b87c6;
    box-shadow: 0 0 0 3px rgba(91, 135, 198, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.platform-category {
    margin-bottom: 35px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border-left: 5px solid #5b87c6;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.platform-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.category-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    min-height: 80px;
}

.checkbox-item:hover {
    border-color: #5b87c6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 135, 198, 0.15);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.3);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked {
    accent-color: #5b87c6;
}

.checkbox-item label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.4;
}

.checkbox-item label strong {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
}

.platform-desc {
    color: #6c757d;
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.team-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.team-table th,
.team-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
    font-size: 14px;
}

.team-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-table tbody tr {
    transition: all 0.3s ease;
    cursor: move;
}

.team-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.team-table tbody tr:nth-child(even) {
    background-color: #fbfcfd;
}

.team-table tbody tr.dragging {
    opacity: 0.5;
    transform: rotate(2deg) scale(0.95);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #5b87c6 0%, #4a6fa5 100%);
    color: white;
    z-index: 1000;
    position: relative;
}

.team-table tbody tr.drag-over {
    border-top: 3px solid #5b87c6;
    border-bottom: 3px solid #5b87c6;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.drag-handle {
    cursor: grab;
    color: #999;
    font-size: 16px;
    padding: 0 5px;
    display: inline-block;
    vertical-align: middle;
}

.drag-handle:hover {
    color: #5b87c6;
}

.drag-handle:active {
    cursor: grabbing;
}

.drop-zone-indicator {
    position: relative;
}

.drop-zone-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.drop-zone-indicator.drag-over::after {
    background: linear-gradient(90deg, #5b87c6, #4a6fa5);
    box-shadow: 0 0 10px rgba(91, 135, 198, 0.5);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.table-container.drag-target {
    border: 2px dashed #5b87c6;
    background: rgba(91, 135, 198, 0.05);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.drag-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #5b87c6 0%, #4a6fa5 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.drag-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.team-table input,
.team-table select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: white;
}

.team-table input:focus,
.team-table select:focus {
    outline: none;
    border-color: #5b87c6;
    box-shadow: 0 0 0 2px rgba(91, 135, 198, 0.1);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.remove-row {
    background: linear-gradient(135deg, #ee3c3f 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.remove-row:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(238, 60, 63, 0.3);
}

.platforms-select {
    min-width: 180px;
    min-height: 60px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    padding: 8px;
    font-size: 13px;
}

.platforms-select:focus {
    border-color: #5b87c6;
    box-shadow: 0 0 0 2px rgba(91, 135, 198, 0.1);
}

.platform-help {
    display: block;
    color: #6c757d;
    font-size: 11px;
    margin-top: 4px;
    font-style: italic;
}

.platform-badge {
    display: inline-block;
    background: linear-gradient(135deg, #5b87c6 0%, #4a6fa5 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.platform-summary {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8ff 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    display: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.platform-summary.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.platform-summary h4 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 6px 8px 6px 0;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.platform-badge .platform-code {
    background: rgba(255, 255, 255, 0.9);
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 10px;
    margin-right: 8px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.add-member {
    background: linear-gradient(135deg, #ee3c3f 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.add-member:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 60, 63, 0.3);
}

.platform-columns {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.platform-input {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.submit-section {
    background: linear-gradient(135deg, #5b87c6 0%, #4a6fa5 100%);
    padding: 40px;
    text-align: center;
    margin-top: 40px;
    border-radius: 10px;
}

.submit-btn {
    background: white;
    color: #5b87c6;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.consent-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.required {
    color: #ee3c3f;
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-columns {
        grid-template-columns: repeat(5, 1fr);
    }

    .logo-section {
        padding: 15px 20px;
    }

    .logo-section img {
        max-height: 60px;
    }
}

/* ================================================================
   CUSTOM VARIABLES (for easy theming)
   ================================================================ */
:root {
    --primary-color: #5b87c6;
    --primary-dark: #4a6fa5;
    --secondary-color: #2c3e50;
    --secondary-dark: #34495e;
    --success-color: #28a745;
    --danger-color: #ee3c3f;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #e1e8ed;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}