/**
 * Wedding Package Builder - Frontend Styles
 */

/* Main Container */
.wedding-package-builder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Sections */
.wpb-section {
    margin-bottom: 40px;
}

.wpb-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Categories */
.wpb-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.wpb-category {
    flex: 1 1 300px;
    margin-bottom: 20px;
}

.wpb-category-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.wpb-category-description {
    margin-bottom: 15px;
    font-size: 14px;
}

/* Tiers */
.wpb-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.wpb-tier {
    flex: 1 1 200px;
    border: 2px solid #eee;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wpb-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wpb-tier.selected {
    border-color: #e91e63;
    background-color: rgba(233, 30, 99, 0.05);
}

.wpb-tier-image {
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px;
    position: relative;
}

.wpb-tier-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.wpb-tier-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.wpb-tier-description {
    font-size: 14px;
    margin-bottom: 0;
}

/* User Information Form */
.wpb-user-info {
    margin-top: 40px;
}

.wpb-form-group {
    margin-bottom: 15px;
}

.wpb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.wpb-form-group input,
.wpb-form-group select,
.wpb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.wpb-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.wpb-form-col {
    flex: 1 1 300px;
}

.wpb-error {
    color: #e91e63;
    font-size: 14px;
    margin-top: 5px;
}

/* Price Summary */
.wpb-price-summary {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
    text-align: center;
}

.wpb-price-range {
    font-size: 24px;
    font-weight: bold;
    color: #e91e63;
}

/* Buttons */
.wpb-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #e91e63;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpb-button:hover {
    background-color: #c2185b;
}

.wpb-button-wrap {
    margin-top: 20px;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wpb-form-row {
        flex-direction: column;
    }
    
    .wpb-form-col {
        flex: 1 1 100%;
    }
    
    .wpb-category {
        flex: 1 1 100%;
    }
    
    .wpb-tier {
        flex: 1 1 100%;
    }
    
    .wpb-section-title {
        font-size: 20px;
    }
}

/* Loading and Feedback Messages */
.wpb-loading {
    text-align: center;
    padding: 20px;
}

.wpb-loading:after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.wpb-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.wpb-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpb-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}