/* Order Page Styles */
.order-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    box-sizing: border-box;
}

/* Order Header */
.order-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.order-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

/* Order Notice */
.order-notice {
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.1) 0%, rgba(230, 53, 115, 0.1) 100%);
    border: 1px solid rgba(44, 60, 169, 0.2);
    border-left: 4px solid var(--primary-blue);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 auto 3rem auto;
    max-width: 800px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.notice-content {
    flex: 1;
}

.notice-content strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Order Form */
.order-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-section {
    position: relative;
}

.form-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 60, 169, 0.1);
}

.address-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.comments-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.validation-message {
    color: var(--primary-pink);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* Book Summary */
.book-summary {
    background: linear-gradient(135deg, rgba(44, 60, 169, 0.05) 0%, rgba(230, 53, 115, 0.05) 100%);
    border: 1px solid rgba(44, 60, 169, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.book-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.book-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.price-display {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

/* Form Labels with Inline Warning */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.address-warning {
    font-weight: 400;
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* Copies Group */
.copies-group {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.copies-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.copies-field {
    max-width: 120px;
    text-align: center;
    font-weight: 600;
}

.copies-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(44, 60, 169, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.btn-primary-large,
.btn-secondary-large {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
    color: white;
    box-shadow: 0 4px 20px rgba(44, 60, 169, 0.3);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(44, 60, 169, 0.4);
}

.btn-primary-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-large {
    background: var(--background-card);
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary-large:hover {
    background: var(--background-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

/* Success Page */
.order-success-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.success-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.order-details {
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-light);
}

.order-details h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.order-details p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-page-container {
        padding: 1rem;
    }

    .order-header h1 {
        font-size: 2rem;
    }

    .order-form {
        padding: 2rem 1.5rem;
    }

    .form-sections {
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .copies-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .copies-field {
        max-width: 100%;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .success-content {
        padding: 3rem 2rem;
    }

    .price-display {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .address-warning {
        font-size: 0.8rem;
        display: block;
        margin-top: 0.25rem;
    }
}

@media (max-width: 480px) {
    .order-header h1 {
        font-size: 1.8rem;
    }

    .order-form {
        padding: 1.5rem 1rem;
    }

    .order-notice {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .form-control {
        padding: 0.8rem 1rem;
    }

    .success-content {
        padding: 2rem 1.5rem;
    }

    .success-content h1 {
        font-size: 2rem;
    }

    .price-display {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }

    .address-warning {
        font-size: 0.75rem;
    }
}