/* Registration Type Section */
.reg-type-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.reg-type-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    color: #333;
}

/* Pricing tier display at the top */
.pricing-tier-display {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.pricing-tier-display .price-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
    justify-content: center;
}

.pricing-explanation {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

.reg-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.reg-option {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.reg-option:hover {
    border-color: #bbb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.reg-option.selected {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.03);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.reg-option-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reg-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.reg-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.reg-option-body {
    margin-left: 28px;
}

.price-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.price-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #e5e5e5;
}

.price-badge.early.current {
    background-color: #4CAF50;
    color: white;
    border-color: #43a047;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.price-badge.standard.current {
    background-color: #2196F3;
    color: white;
    border-color: #1e88e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.price-badge.onsite.current {
    background-color: #FF9800;
    color: white;
    border-color: #f57c00;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.current-price {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.price-value {
    font-weight: 600;
    color: #4CAF50;
}

.option-description {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.child-price {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}

.child-price strong {
    color: #4CAF50;
    font-weight: 600;
}

.pricing-note {
    font-style: italic;
    color: #666;
    font-size: 14px;
    margin-top: 12px;
    padding: 8px 0;
}

/* Form inputs styling */
.conference-registration-container input[type="text"],
.conference-registration-container input[type="email"],
.conference-registration-container select,
.conference-registration-container textarea {
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.conference-registration-container input[type="text"]:hover,
.conference-registration-container input[type="email"]:hover,
.conference-registration-container select:hover,
.conference-registration-container textarea:hover {
    border-color: #bbb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.conference-registration-container input[type="text"]:focus,
.conference-registration-container input[type="email"]:focus,
.conference-registration-container select:focus,
.conference-registration-container textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 1px 4px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* Ensure WordPress admin bar doesn't interfere with our styles */
body.admin-bar .reg-option,
body.admin-bar .reg-type-section,
body.admin-bar .price-badge {
    box-sizing: border-box;
}

/* Force our styles to take precedence */
.conference-registration-container .reg-option,
.conference-registration-container .price-badge,
.conference-registration-container .current-price,
.conference-registration-container .child-price {
    box-sizing: border-box !important;
    font-family: var(--wp--preset--font-family--system-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
}

/* Bold style wrapper for the price badge text */
.price-badge .badge-text {
    font-weight: 500;
}

/* Fix any theme interference */
.reg-option .price-badge.early.current,
.reg-option .price-badge.standard.current,
.reg-option .price-badge.onsite.current {
    color: white !important;
}

/* Add subtle green checkmark to selected option */
.reg-option.selected .reg-option-header::before {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Add green border indicator to the left of selected option */
.reg-option.selected {
    position: relative;
}

.reg-option.selected::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background-color: #4CAF50;
    border-radius: 2px;
}

/* Child registration section */
.children-section {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.section-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.add-child-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-child-button:hover {
    background-color: #45a049;
}

.no-children-message {
    text-align: center;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

/* Child entry styles */
.child-entry {
    margin-bottom: 10px;
}

.child-input-group {
    display: grid;
    grid-template-columns: 3fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.remove-child-button {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.remove-child-button:hover {
    background-color: #e53935;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .price-badges {
        flex-direction: column;
        gap: 5px;
    }
    
    .reg-option {
        padding: 15px;
    }
    
    .reg-option-body {
        margin-left: 20px;
    }
    
    .child-input-group {
        grid-template-columns: 2fr 1fr auto;
    }
    
    /* Adjust checkmark position on mobile */
    .reg-option.selected .reg-option-header::before {
        top: 14px;
        right: 14px;
        width: 18px;
        height: 18px;
        background-size: 12px;
    }
}

@media (max-width: 480px) {
    .child-input-group {
        grid-template-columns: 1fr 80px auto;
        gap: 5px;
    }
    
    .reg-option.selected::before {
        top: 8px;
        bottom: 8px;
    }
}

/* Pricing display styling */
.pricing-tier-label {
    font-size: 13px;
    font-style: italic;
    color: #666;
    margin-left: 4px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 5px;
}

.discounted-price {
    font-weight: 600;
    color: #e53935;
    font-size: 16px;
}

.discount-label {
    color: #e53935;
    font-size: 14px;
    margin-left: 5px;
    font-weight: 500;
}

/* Promo code styling */
.promo-message .success {
    color: #4CAF50;
    font-weight: 500;
}

.promo-message .error {
    color: #e53935;
}

.promo-message .processing {
    color: #666;
    font-style: italic;
}

/* Add animation for price changes */
@keyframes highlight-price {
    0% { background-color: rgba(76, 175, 80, 0); }
    50% { background-color: rgba(76, 175, 80, 0.2); }
    100% { background-color: rgba(76, 175, 80, 0); }
}

.price-value, .discounted-price, #child-price-value {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 3px;
}

.price-updated {
    animation: highlight-price 1.5s ease;
}

/* Price breakdown styling */
.payment-details-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.price-breakdown-container {
    flex: 1;
    min-width: 250px;
}

.promo-code-container-wrapper {
    flex: 1;
    min-width: 250px;
}

.price-breakdown {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: background-color 0.3s;
}

.price-breakdown.highlight {
    background-color: rgba(76, 175, 80, 0.1);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.breakdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

.breakdown-item.total {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.item-label {
    color: #555;
}

.item-value {
    font-weight: 500;
}

.discount-value {
    color: #e53935;
}

/* Price breakdown responsive adjustments */
@media (max-width: 600px) {
    .payment-details-section {
        flex-direction: column;
    }
    
    .price-breakdown-container,
    .promo-code-container-wrapper {
        width: 100%;
    }
}
