/* Form Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation - Inherited from dashboard.css */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-brand span {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f7fafc;
    color: #667eea;
    text-decoration: none;
}

.nav-link.logout {
    color: #e53e3e;
}

.nav-link.logout:hover {
    background: #fed7d7;
    color: #c53030;
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease-out;
}

.form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.form-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* Alerts */
.alert {
    margin: 20px 30px;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.alert-danger {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert .btn {
    margin-left: auto;
}

/* Form Sections */
.registration-form {
    padding: 40px 30px;
}

.form-section {
    margin-bottom: 40px;
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.form-section h3 i {
    color: #667eea;
    font-size: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label i {
    color: #667eea;
    /* width: 16px; */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Option Cards */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #ffffff;
}

.option-card:hover,
.option-card.hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.option-card.active {
    border-color: #667eea;
    background: #f7fafc;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card label {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.option-icon.spectator {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.option-icon.drifting {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.option-icon.stance {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.option-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.option-info .price {
    font-size: 20px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 5px;
}

.option-info p:last-child {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* Price Display */
.price-display {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    display: none;
    animation: bounceIn 0.6s ease-out;
}

.price-display h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.price-display.price-updated {
    animation: pulse 0.5s ease-out;
}

/* Account Input Group */
.account-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.account-input-group input {
    flex: 1;
}

.btn-copy {
    padding: 16px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: #48bb78;
}

.help-text {
    color: #718096;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #667eea;
    background: #f7fafc;
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text i {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.file-upload-text p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 5px;
}

.file-upload-text small {
    color: #718096;
}

/* Image Preview */
.image-preview {
    margin-top: 20px;
}

.preview-container {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.preview-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #4a5568;
}

.btn-remove-preview {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: #718096;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #4a5568;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px 15px;
    }
    
    .form-header {
        padding: 30px 20px;
    }
    
    .form-header h1 {
        font-size: 28px;
    }
    
    .registration-form {
        padding: 30px 20px;
    }
    
    .form-section h3 {
        font-size: 20px;
    }
    
    .option-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-card {
        padding: 15px;
    }
    
    .option-card label {
        gap: 15px;
    }
    
    .option-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .option-info h4 {
        font-size: 16px;
    }
    
    .option-info .price {
        font-size: 18px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-submit,
    .btn-cancel {
        justify-content: center;
    }
    
    .account-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copy {
        justify-content: center;
    }
    
    .alert {
        margin: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .alert .btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .form-header {
        padding: 25px 15px;
    }
    
    .form-header h1 {
        font-size: 24px;
    }
    
    .registration-form {
        padding: 25px 15px;
    }
    
    .form-section {
        margin-bottom: 30px;
    }
    
    .form-section h3 {
        font-size: 18px;
        gap: 10px;
    }
    
    .form-group input,
    .btn-submit,
    .btn-cancel,
    .btn-copy {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .option-card {
        padding: 12px;
    }
    
    .option-card label {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .price-display h4 {
        font-size: 20px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-upload-text i {
        font-size: 36px;
    }
}
