/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=DM+Sans:wght@400;500;700&display=swap');

/* CSS Variables */
:root {
    --prb-primary: #FF0309;
    --prb-secondary: #112455;
    --prb-accent: #FFD700;
    --prb-glass-bg: rgba(255, 255, 255, 0.08);
    --prb-glass-border: rgba(255, 255, 255, 0.18);
    --prb-text-primary: #FFFFFF;
    --prb-text-secondary: rgba(255, 255, 255, 0.7);
}

/* Container */
.prb-container {
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    /*background: linear-gradient(135deg, #0a0e27 0%, #1a0b2e 30%, #16001e 70%, #000000 100%);*/
    /*min-height: 100vh;*/
}

.prb-container::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 3, 9, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 20%, rgba(17, 36, 85, 0.15) 0%, transparent 50%);
    animation: prb-drift 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes prb-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, 3%) rotate(1deg); }
    66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.prb-form-card {
    max-width: 460px;
    width: 100%;
    background: var(--prb-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--prb-glass-border);
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: prb-cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

@keyframes prb-cardEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Progress */
.prb-progress-section {
    margin-bottom: 32px;
    animation: prb-fadeInDown 0.5s ease-out 0.1s backwards;
}

@keyframes prb-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prb-progress-text {
    color: var(--prb-text-secondary);
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.prb-progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.prb-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--prb-accent) 0%, #FFA500 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    position: relative;
}

.prb-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: prb-shimmer 2s infinite;
}

@keyframes prb-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Steps */
.prb-step-content {
    animation: prb-stepEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes prb-stepEnter {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prb-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    color: var(--prb-text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.prb-step-subtitle {
    color: var(--prb-text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Option Cards */
.prb-option-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.prb-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 3, 9, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prb-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.prb-option-card.prb-selected {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--prb-accent);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.25),
                0 0 0 1px rgba(255, 215, 0, 0.2) inset;
}

.prb-option-card.prb-selected::before {
    opacity: 1;
}

.prb-option-icon {
    font-size: 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.prb-option-text {
    flex: 1;
    color: var(--prb-text-primary);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Grid */
.prb-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Add-ons */
.prb-addon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prb-addon-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.prb-addon-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.prb-addon-card.prb-selected {
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--prb-accent);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.15);
}

.prb-addon-icon {
    font-size: 24px;
}

.prb-addon-label {
    flex: 1;
    color: var(--prb-text-primary);
    font-size: 15px;
    font-weight: 500;
}

.prb-addon-price {
    color: var(--prb-accent);
    font-weight: 700;
    font-size: 14px;
}

/* Inline Cake Details Container */
.prb-cake-details-container {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 3, 9, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prb-cake-form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--prb-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.prb-cake-form-subtitle {
    color: var(--prb-text-secondary);
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* Price Display */
.prb-price-display {
    background: rgba(255, 215, 0, 0.12);
    border-left: 4px solid #FFD700;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.prb-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prb-price-label {
    color: var(--prb-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.prb-price-value {
    color: #FFD700;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}

/* Forms */
.prb-form-group {
    margin-bottom: 20px;
}

.prb-form-label {
    display: block;
    color: var(--prb-text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.prb-form-input,
.prb-form-select,
.prb-form-textarea {
    width: 100%;
    /*padding: 14px 16px;*/
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--prb-text-primary);
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* ===== SELECT FIX ===== */
.prb-form-select {
    color: #ffffff;
    cursor: pointer;
}

/* Placeholder appearance */
.prb-form-select option[value=""] {
    color: rgba(255, 255, 255, 0.6);
    border-radius:7px !important;
    margin-top:10px !important;
}

/* Keep text readable on focus */
.prb-form-select:focus {
    color: #ffffff;
}

/* Dropdown list background */
.prb-form-select option {
    background-color: #3a1642;
    color: #ffffff;
}


.prb-form-input:focus,
.prb-form-select:focus,
.prb-form-textarea:focus {
    outline: none;
    border-color: var(--prb-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    color:white;
}

.prb-form-input::placeholder,
.prb-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.prb-form-textarea {
    min-height: 70px;
    resize: vertical;
}

.prb-form-hint {
    display: block;
    color: var(--prb-text-secondary);
    font-size: 12px;
    margin-top: 6px;
}


.prb-form-textarea {
    line-height: 1.6;
}


/* Radio & Checkbox Groups */
.prb-radio-group,
.prb-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.prb-radio-label,
.prb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.prb-radio-label:hover,
.prb-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.prb-radio-label input[type="radio"],
.prb-radio-label input[type="checkbox"],
.prb-checkbox-label input[type="radio"],
.prb-checkbox-label input[type="checkbox"] {
    cursor: pointer;
    accent-color: #FFD700;
}

.prb-radio-label input:checked + span,
.prb-checkbox-label input:checked + span {
    color: #FFD700;
    font-weight: 600;
}

/* File Upload */
.prb-file-upload {
    position: relative;
}

#prb-cake-photo {
    display: none;
}

.prb-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.prb-file-label:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.5);
}

.prb-file-icon {
    font-size: 32px;
}

.prb-file-text {
    color: var(--prb-text-primary);
    font-weight: 500;
    font-size: 15px;
}

.prb-file-hint {
    color: var(--prb-text-secondary);
    font-size: 13px;
}

/* Photo Preview */
#prb-photo-preview {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

#prb-photo-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-height: 300px;
}

/* Cake Action Buttons */
.prb-cake-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.prb-cake-actions .prb-btn {
    flex: 1;
}

/* Time Grid */
.prb-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.prb-time-slot {
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    color: var(--prb-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prb-time-slot:hover:not(.prb-disabled) {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    color: #ffd700;
}

.prb-time-slot.prb-selected {
    background: linear-gradient(135deg, var(--prb-accent), #FFA500);
    border-color: var(--prb-accent);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

/* Buttons */
.prb-button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.prb-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.prb-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.prb-btn:active::before {
    width: 300px;
    height: 300px;
}

.prb-btn-back {
    background: rgba(255, 255, 255, 0.08);
    color: var(--prb-text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.prb-btn-back:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: #ffd700;
    color: #ffd700;
}

.prb-btn-next {
    background: linear-gradient(135deg, var(--prb-accent), #FFA500);
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.prb-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.4);
}

.prb-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Summary Box */
.prb-summary-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.prb-summary-box h3{
    color:#FFD700 !important;
    font-size:18px;
    font-weight:400;
}

.prb-summary-box p{
    color:white;
    margin-bottom:7px;
}

/* Success State */
.prb-success-state {
    text-align: center;
    padding: 40px 20px;
}

.prb-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--prb-accent), #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: prb-successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
}

@keyframes prb-successPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.prb-success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--prb-text-primary);
    margin-bottom: 12px;
}

.prb-success-message {
    color: var(--prb-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Alert */
.prb-inline-alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 3, 9, 0.12);
    border: 1.5px solid rgba(255, 3, 9, 0.4);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: prb-alertFade 0.3s ease;
}

.prb-alert-icon {
    font-size: 18px;
}

@keyframes prb-alertFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility */
.prb-hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .prb-form-card {
        padding: 24px 20px;
    }

    .prb-step-title {
        font-size: 24px;
    }

    .prb-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .prb-time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prb-radio-group,
    .prb-checkbox-group {
        grid-template-columns: 1fr;
    }

    .prb-cake-details-container {
        padding: 16px;
        margin: 16px 0;
    }

    .prb-cake-form-title {
        font-size: 20px;
    }

    .prb-cake-actions {
        flex-direction: column;
    }

    .prb-file-label {
        padding: 24px 16px;
    }
}

/* Payment area styles */
#prb-payment-section {
    margin-top: 12px;
}

#prb-card-element {
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
    color: #32325d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

#prb-card-errors {
    color: #b00020;
    font-size: 13px;
    margin-top: 8px;
}

#prb-pay-button {
    background: linear-gradient(135deg, var(--prb-accent), #FFA500);
    color: #000;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
}

#prb-cancel-payment {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

label,legend {
 
    color: white !important;
}