/* =============================================
   CREATE ROOM PAGE STYLES
   assets/css/create-room.css
   ============================================= */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-lg: 16px;
}

/* Main Container */
.create-room-container {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 40px 20px;
}

.create-room-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.create-room-header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideInDown 0.6s ease-out;
}

.create-room-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.create-room-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin: 0;
}

/* Grid Layout */
.create-room-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Form Section */
.create-room-form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.6s ease-out;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Duration Selection Grid */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.duration-option {
    position: relative;
}

.duration-option input[type="radio"] {
    display: none;
}

.duration-option label {
    display: block;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--gray-50);
    position: relative;
}

.duration-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.duration-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.duration-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 6px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.checkbox-icon {
    font-size: 1.2rem;
}

.checkbox-text strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 3px;
}

.checkbox-text small {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Promo Code Input */
.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
}

.btn-validate {
    padding: 10px 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.btn-validate:hover {
    background: var(--gray-200);
}

.btn-validate.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Promo Message */
.promo-message {
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius);
    display: none;
}

.promo-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 3px solid var(--success-color);
}

.promo-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 3px solid var(--danger-color);
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.btn-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Price Summary Section */
.price-summary-section {
    animation: slideInRight 0.6s ease-out;
}

.price-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.price-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 25px 0;
}

.price-breakdown {
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.95rem;
}

.price-label {
    color: var(--gray-600);
    font-weight: 500;
}

.price-value {
    color: var(--gray-900);
    font-weight: 600;
}

.price-value.discount {
    color: var(--success-color);
}

.price-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 15px 0;
}

.price-row.total {
    font-size: 1.3rem;
}

/* Price Info */
.price-info {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
}

.price-info p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* Promo List */
.promo-list {
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
}

.promo-list h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.promo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
}

.promo-item code {
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-color);
}

.promo-item small {
    color: var(--gray-500);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.modal-content.error {
    text-align: left;
}

.modal-content.error h3 {
    color: var(--danger-color);
}

.modal-content h3 {
    margin: 0 0 15px 0;
    color: var(--gray-900);
}

.modal-content p {
    color: var(--gray-600);
    margin: 0 0 20px 0;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Payment Gateway Selection */
.gateway-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.gateway-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    background: white;
}

.gateway-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.gateway-option:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.gateway-option input[type="radio"]:checked + .gateway-name {
    color: #3b82f6;
    font-weight: 600;
}

.gateway-name {
    transition: all 0.3s;
    font-size: 0.95rem;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .create-room-grid {
        grid-template-columns: 1fr;
    }
    
    .create-room-header h1 {
        font-size: 1.8rem;
    }
    
    .create-room-form-section {
        padding: 25px;
    }
    
    .price-card {
        position: static;
    }
    
    .duration-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}