/*
 * File: order-form.css
 * Description: Styles for the Order Form page template.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Guminert', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* FIX: Removed body padding. Will rely on .container padding from main.css */
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    /* FIX: This container should respect the .container padding from main.css */
    /* If it doesn't, add 'padding: 0 20px;' here */
}

.header {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: rgba(51, 65, 85, 0.15);
    transform: rotate(45deg);
}

.logo {
    position: absolute;
    top: 20px;
    left: 40px;
    height: 50px;
    width: auto;
    z-index: 10;
}

/* NEW RULE: Ensure image inside link scales correctly */
.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    /* FIX: Force color to be white */
    color: white !important;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.tier-selection {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 3px solid #dee2e6;
}

.tier-selection h2 {
    color: #334155;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tier-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tier-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.tier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.tier-card input[type="radio"]:checked + .tier-badge {
    opacity: 1;
}

.tier-badge {
    background: linear-gradient(135deg, #3071FF 0%, #1a4fbf 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.tier-card.premium .tier-badge {
    background: linear-gradient(135deg, #DF3934 0%, #b82e2a 100%);
}

.tier-card h3 {
    /* This color is dark by design, to be read on a white card */
    color: #334155;
    font-size: 20px;
    margin-bottom: 8px;
}

.tier-price {
    color: #3071FF;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tier-card.premium .tier-price {
    color: #DF3934;
}

.tier-features {
    list-style: none;
    padding: 0;
}

.tier-features li {
    padding: 6px 0;
    color: #666;
    font-size: 13px;
}

.tier-card h3,
.tier-card .tier-price,
.tier-card .tier-features {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tier-card:has(input[type="radio"]:checked) {
    border-color: #3071FF;
}

.tier-card.premium:has(input[type="radio"]:checked) {
    border-color: #DF3934;
}

.tier-card:has(input[type="radio"]:checked) h3,
.tier-card:has(input[type="radio"]:checked) .tier-price,
.tier-card:has(input[type="radio"]:checked) .tier-features {
    opacity: 1;
}

.form-content {
    padding: 40px;
}

.info-banner {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.form-section {
    margin-bottom: 35px;
}

.section-header {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    padding: 15px 20px;
    margin: -10px -10px 25px -10px;
    border-radius: 8px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    /* FIX: Force color to be white */
    color: white !important;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid.single-column {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .required {
    color: #DF3934;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Guminert', Arial, sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    /* FIX: Explicitly set text color and background */
    color: #333;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3071FF;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

.help-text {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-top: 8px;
    border-radius: 5px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.hidden {
    display: none;
}

.submit-section {
    background: #f8f9fa;
    padding: 30px;
    margin: 40px -40px -40px -40px;
    border-top: 3px solid #dee2e6;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #3071FF 0%, #1a4fbf 100%);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(48, 113, 255, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 113, 255, 0.4);
}

@media (max-width: 768px) {
    /* FIX: Removed body padding rule */
    .container {
        border-radius: 0;
    }
    .header {
        padding: 30px 20px;
    }
    .header::before, .header::after {
        display: none;
    }
    .logo {
        position: static;
        height: 40px;
        margin-bottom: 20px;
    }
    .header h1 {
        font-size: 26px;
    }
    .tier-selection {
        padding: 20px;
    }
    .tier-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .form-content {
        padding: 30px 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .submit-section {
        padding: 20px;
        margin: 30px -20px -20px -20px;
    }
}