/* ==================== */
/* Order Form Enhancements */
/* ==================== */

/* Domain name input focus */
#domain_name:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1) !important;
}

/* Notes textarea focus */
#notes:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1) !important;
}

/* Form hint styling */
.form-hint {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

/* Cost breakdown styling */
.cost-breakdown {
    margin-bottom: 1.5rem;
}

.cost-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cost-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cost-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cost-item.total {
    font-weight: 600;
    font-size: 0.95rem;
    padding-top: 0.5rem;
    color: var(--primary-color);
}

.cost-summary {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(247, 37, 133, 0.05));
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.summary-item .highlight {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

/* Domain Info Box */
.domain-info {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.05), rgba(230, 57, 70, 0.05));
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--success);
}

.domain-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Layout: center and enlarge form */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: transparent;
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
}

@media (min-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .calculator-container {
        padding: 3rem;
    }
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calculator-result {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    order: -1;
}

@media (min-width: 768px) {
    .calculator-result {
        padding: 2rem;
        position: sticky;
        top: 100px;
        height: fit-content;
        order: 0;
    }
}

.company-block {
    border: 1px solid var(--input-border);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
}

.input-large {
    padding: 14px 16px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1.06rem;
    width: 100%;
    background: var(--input-bg);
    color: var(--text-primary);
    box-sizing: border-box;
    transition: var(--transition);
    margin-bottom: 0.75rem;
}

.two-cols {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.two-cols .input-large {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 480px) {
    .two-cols {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .two-cols .input-large {
        min-width: 100%;
        flex: 1 0 100%;
    }
    
    .input-large {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 44px;
        margin-bottom: 0.75rem;
    }
    
    .company-block {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .calculator-container {
        padding: 1rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkbox-label,
    .radio-label {
        min-height: 44px;
        display: flex;
        align-items: center;
        margin-top: 0.5rem;
        gap: 0.75rem;
    }
    
    .radio-text,
    .checkbox-text {
        font-size: 0.9rem;
    }
    
    .radio-text strong,
    .checkbox-text strong {
        font-size: 0.95rem;
    }
    
    .radio-text small,
    .checkbox-text small {
        font-size: 0.8rem;
    }
    
    .radio-group,
    .checkbox-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .calculator-result.centered {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
        width: 100%;
    }
    
    .form-actions.center {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cost-item {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .cost-section h4 {
        font-size: 0.9rem;
    }
}

/* Error state for inputs */
.input-error {
    border-color: #e63946 !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
}

.validation-message {
    color: #e63946;
    margin-top: 0.5rem;
    font-weight: 600;
}

