/* Refoundry Brand Stylesheet */

/* Color Palette */
:root {
    --color-dark-grey: #3f3f3f;
    --color-orange: #f97316;
    --color-slate-blue: #479bba;
    --color-steel-blue: #2a5c83;
    --color-soft-grey: #f0f0f0;
    --color-white: #ffffff;
    --color-light-grey: #e8e8e8;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    
    /* Typography */
    --font-heading: 'Franklin Gothic ATF', 'Franklin Gothic', 'Arial', sans-serif;
    --font-body: 'IBM Plex Sans', 'Calibri', sans-serif;
    --font-fallback: 'Calibri', 'Arial', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-grey);
    color: var(--color-dark-grey);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    max-width: 700px;
    width: 100%;
}

/* Header with Logo */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 300;
    color: var(--color-dark-grey);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    color: var(--color-dark-grey);
    margin-bottom: 15px;
}

h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 300;
    color: var(--color-orange);
    margin-top: 0;
    margin-bottom: 10px;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

p, li {
    font-family: var(--font-body);
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

/* Info Boxes */
.info-box {
    background: var(--color-soft-grey);
    border-left: 4px solid var(--color-orange);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    border-radius: 4px;
}

.info-box.secondary {
    border-left-color: var(--color-slate-blue);
}

.info-box.warning {
    background: #fff3cd;
    border-left-color: var(--color-warning);
}

.info-box.warning h3 {
    color: #856404;
}

.info-box ul, .info-box ol {
    margin: 10px 0;
    padding-left: 25px;
}

.info-box li {
    margin: 8px 0;
    color: #555;
}

/* Buttons */
.btn-consent {
    background: linear-gradient(135deg, var(--color-orange) 0%, #f56c00 100%);
    color: var(--color-white);
    border: none;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 4px;
    cursor: pointer;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
}

.btn-consent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #f56c00 0%, #e85a00 100%);
}

.btn-consent:active {
    transform: translateY(0);
}

.btn-consent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Checkbox and Options */
.options-section {
    margin: 24px 0;
    padding: 15px;
    background: var(--color-soft-grey);
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 15px;
    color: var(--color-dark-grey);
    cursor: pointer;
    flex: 1;
}

.checkbox-help {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
    margin-left: 28px;
}

/* Footer */
.footer {
    margin-top: 30px;
    color: #999;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--color-light-grey);
    padding-top: 20px;
}

.footer p {
    margin: 5px 0;
}

/* Status Messages */
.status {
    display: none;
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.status.show {
    display: block;
}

.status.processing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Spinner Animation */
.spinner {
    border: 3px solid var(--color-light-grey);
    border-top: 3px solid var(--color-orange);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Icons */
.success-icon, .error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 48px;
}

.success-icon {
    background: var(--color-success);
}

.error-icon {
    background: var(--color-error);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        border-radius: 6px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .logo-container img {
        max-width: 250px;
    }
    
    .btn-consent {
        padding: 14px 40px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    .logo-container img {
        max-width: 200px;
    }
    
    .info-box {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    body {
        background: var(--color-white);
    }
    
    .container {
        box-shadow: none;
    }
}
