/* Order Page - Matching Marketplace Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 2rem;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.page-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

/* Order Card */
.order-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: var(--gray-900);
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

small {
    color: var(--gray-600);
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

/* Payment Grid (Package Selection) */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.payment-option {
    position: relative;
    padding: 2rem 1.5rem;
    border: 3px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
}

.payment-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.payment-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Domain Grid */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.domain-option {
    position: relative;
    padding: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.domain-option:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.domain-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.domain-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Preview Box */
.preview {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
    border: 2px solid var(--primary);
}

.preview-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.preview-handle {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.preview-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 1.5rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 2rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Availability Badge */
.availability {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.availability.available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
}

.availability.taken,
.availability.unavailable {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.availability.checking {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* Messages */
.message {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.error-message {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 1rem;
    }

    .order-card {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .payment-grid,
    .domain-grid {
        grid-template-columns: 1fr;
    }

    .preview-handle {
        font-size: 1.75rem;
    }
}