@font-face {
    font-family: 'Spectral';
    src: url('/static/fonts/Spectral-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Spectral-SemiBold';
    src: url('/static/fonts/Spectral-SemiBold.ttf') format('truetype');
}


body {
    font-family: 'Spectral', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    background: #f8f4e8;
    min-height: 100vh;
    color: #2D2D2A;
    font-size: 18px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 128px;
    background: linear-gradient(0deg, #bd5c0d, #eb8643);
    z-index: -1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    position: relative;
    z-index: 10;
}

.header .logo {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 48px;
}

.header .logo a {
    text-decoration: none;
    color: #2D2D2A;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header .logo a:hover {
    transform: translateY(-2px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.header a {
    color: #2D2D2A;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header a:hover {
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
    transition: color 0.3s ease;
}

.header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.content {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    background: rgba(248, 248, 242, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    margin-top: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-text {
    font-size: 18px;
    font-weight: 400;
    color: #2D2D2A;
    text-align: center;
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-icon {
    height: 0.7em;
    width: 0.7em;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
    transition: filter 0.2s ease;
}

.logo-icon:hover {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
}

/* Global model viewer styling */
.global-model-viewer {
    --poster-color: transparent;
    --progress-bar-color: transparent;
    --progress-mask: transparent;
}

.global-model-viewer model-viewer {
    background: transparent;
    overflow: visible;
}

/* Individual coin instances */
.coin-instance {
    --poster-color: transparent;
    --progress-bar-color: transparent;
    --progress-mask: transparent;
}

.coin-instance model-viewer {
    background: transparent;
    overflow: visible;
    transform-style: preserve-3d;
}

/* Organization grid styling */
.organization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.organization-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.organization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.organization-icon {
    margin-bottom: 15px;
}

.organization-icon img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.organization-card:hover .organization-icon img {
    transform: scale(1.1);
}

.organization-name {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 18px;
    color: #2D2D2A;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Wizard Styles */
.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h1 {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 32px;
    color: #2D2D2A;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.wizard-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Progress Indicator */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 3px solid #f8f4e8;
}

.step-label {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-number {
    background: #eb8643;
    color: white;
    box-shadow: 0 4px 12px rgba(235, 134, 67, 0.3);
}

.progress-step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    font-size: 18px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-section h2 {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 24px;
    color: #2D2D2A;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #eb8643;
    padding-bottom: 10px;
}

.form-section p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

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

.step-content h2 {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 24px;
    color: #2D2D2A;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.step-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2D2D2A;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Spectral', sans-serif;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #eb8643;
    box-shadow: 0 0 0 3px rgba(235, 134, 67, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-help {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.field-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

/* File Upload Styles */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-preview {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-preview:hover {
    border-color: #eb8643;
    background: #fef7f0;
}

.upload-placeholder {
    color: #666;
}

.upload-placeholder span {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

/* Review Section */
.review-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.review-section h3 {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 18px;
    color: #2D2D2A;
    margin-bottom: 15px;
    border-bottom: 2px solid #eb8643;
    padding-bottom: 8px;
}

.review-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.review-item strong {
    color: #2D2D2A;
    font-weight: 600;
}

.review-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.icon-preview {
    text-align: center;
}

.icon-preview strong {
    display: block;
    margin-bottom: 10px;
    color: #2D2D2A;
    font-weight: 600;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Spectral', sans-serif;
}

.btn-primary {
    background: #eb8643;
    color: white;
    box-shadow: 0 4px 12px rgba(235, 134, 67, 0.3);
}

.btn-primary:hover {
    background: #d67a3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 134, 67, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-outline {
    background: transparent;
    color: #eb8643;
    border: 2px solid #eb8643;
}

.btn-outline:hover {
    background: #eb8643;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 134, 67, 0.4);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    margin-bottom: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #eb8643;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state h3 {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 24px;
    color: #2D2D2A;
    margin-bottom: 10px;
}

.loading-state p {
    color: #666;
    font-size: 16px;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.success-state h3 {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 28px;
    color: #2D2D2A;
    margin-bottom: 10px;
}

.success-state p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.success-details {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.detail-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.detail-item strong {
    color: #2D2D2A;
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 40px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3);
}

.error-state h3 {
    font-family: 'Spectral-SemiBold', sans-serif;
    font-size: 28px;
    color: #2D2D2A;
    margin-bottom: 10px;
}

.error-state p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-container {
        padding: 20px;
        margin: 10px;
    }
    
    .wizard-progress {
        flex-direction: column;
        gap: 20px;
    }
    
    .wizard-progress::before {
        display: none;
    }
    
    .progress-step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .step-label {
        margin-top: 0;
        text-align: left;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .success-actions,
    .error-actions {
        flex-direction: column;
    }
    
    .review-icons {
        flex-direction: column;
        align-items: center;
    }
}