/**
 * Booking Form Styles
 * Professional, modern, and beautiful form styling
 */

/* Container & Wrapper */
.pig-booking-form-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pig-booking-form-container[data-style="multi"] {
    max-width: 1100px;
}

.pig-booking-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Form Header */
.pig-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 40px 40px 30px;
    text-align: center;
}

.pig-form-title {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pig-form-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    font-weight: 400;
}

/* Form Sections */
.pig-booking-form {
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

.pig-booking-form.pig-multi-page-form {
    padding: 40px 40px 60px;
}

/* Itinerary Table Styles */
.pig-itinerary-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}

.pig-itinerary-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.pig-itinerary-table th,
.pig-itinerary-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.pig-itinerary-table th {
    background: #f5f5f5;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pig-itinerary-table .itinerary-day-header td {
    background: #667eea;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 12px;
}

.pig-itinerary-table input,
.pig-itinerary-table textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.pig-itinerary-table input[type="time"] {
    min-width: 100px;
}

.pig-itinerary-table input[type="text"] {
    min-width: 150px;
}

.pig-itinerary-table textarea {
    min-width: 200px;
    resize: vertical;
    min-height: 40px;
}

.pig-form-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.pig-booking-form.pig-multi-page-form .pig-form-section {
    margin-bottom: 0;
    padding-bottom: 30px;
    border-bottom: none;
    min-height: 400px;
}

.pig-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

.pig-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.pig-section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.pig-section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Form Groups */
.pig-form-group {
    margin-bottom: 25px;
}

.pig-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .pig-form-row {
        grid-template-columns: 1fr;
    }
}

.pig-form-col {
    margin-bottom: 0;
}

/* Labels */
.pig-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333333;
    letter-spacing: 0.2px;
}

.pig-label.required {
    position: relative;
}

.pig-required {
    color: #e74c3c;
    margin-left: 4px;
    font-weight: 700;
}

.pig-help-text {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666666;
    font-style: italic;
}

/* Input Fields */
.pig-input,
.pig-select,
.pig-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333333;
    box-sizing: border-box;
}

.pig-input:focus,
.pig-select:focus,
.pig-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pig-input:hover,
.pig-select:hover,
.pig-textarea:hover {
    border-color: #b0b0b0;
}

.pig-textarea {
    resize: vertical;
    min-height: 100px;
}

.pig-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    appearance: none;
}

/* Radio Buttons */
.pig-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pig-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
}

.pig-radio-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.pig-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #667eea;
}

.pig-radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.pig-radio-label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Person Input Fields */
.pig-persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.pig-person-input-group {
    display: flex;
    flex-direction: column;
}

.pig-person-input-group label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

.pig-person-input-group input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.pig-person-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Persons Summary */
.pig-persons-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

/* Days Display */
.pig-days-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.pig-days-display strong {
    font-size: 16px;
    color: #333;
}

.pig-days-display #calculated-days {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

.pig-days-display #days-breakdown {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.pig-persons-summary h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.pig-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.pig-summary-row:last-child {
    border-bottom: none;
}

.pig-summary-row span {
    font-size: 14px;
    color: #666;
}

.pig-summary-row strong {
    font-size: 16px;
    color: #667eea;
    font-weight: 700;
}

/* Page Indicators (Multi-page) */
.pig-page-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.pig-page-indicator {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pig-page-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 0;
}

.pig-page-indicator:last-child::after {
    display: none;
}

.pig-indicator-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.pig-indicator-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.pig-page-indicator.active .pig-indicator-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pig-page-indicator.active .pig-indicator-label {
    color: #667eea;
    font-weight: 600;
}

.pig-page-indicator.completed .pig-indicator-number {
    background: #10b981;
    color: #ffffff;
}

.pig-page-indicator.completed .pig-indicator-label {
    color: #10b981;
}

.pig-page-indicator.completed::after {
    background: #10b981;
}

/* Form Navigation (Multi-page) */
.pig-form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.pig-page-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: inherit;
}

.pig-page-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pig-page-nav-button:active {
    transform: translateY(0);
}

.pig-page-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pig-prev-button {
    margin-right: auto;
}

.pig-next-button {
    margin-left: auto;
}

/* Submit Button */
.pig-form-actions {
    margin-top: 40px;
    text-align: center;
}

.pig-booking-form.pig-multi-page-form .pig-form-actions {
    margin-top: 0;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.pig-submit-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: inherit;
}

.pig-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pig-submit-button:active {
    transform: translateY(0);
}

.pig-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pig-button-icon {
    width: 20px;
    height: 20px;
}

/* Success Message */
.pig-booking-success-message {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.pig-success-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #10b981;
}

.pig-success-icon {
    width: 80px;
    height: 80px;
    color: #10b981;
    margin: 0 auto 20px;
}

.pig-success-content h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 700;
}

.pig-success-content p {
    margin: 0;
    font-size: 16px;
    color: #666666;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pig-form-section {
    animation: fadeIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pig-booking-form-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .pig-form-header {
        padding: 30px 20px 20px;
    }

    .pig-form-title {
        font-size: 24px;
    }

    .pig-form-subtitle {
        font-size: 14px;
    }

    .pig-booking-form {
        padding: 25px 20px;
    }

    .pig-booking-form.pig-multi-page-form {
        padding: 25px 20px 60px;
    }

    .pig-form-section {
        margin-bottom: 35px;
        padding-bottom: 30px;
    }

    .pig-booking-form.pig-multi-page-form .pig-form-section {
        min-height: auto;
    }

    .pig-section-title {
        font-size: 20px;
    }

    .pig-persons-grid {
        grid-template-columns: 1fr;
    }

    .pig-submit-button,
    .pig-page-nav-button {
        width: 100%;
        justify-content: center;
    }

    .pig-page-indicators {
        padding: 20px 15px;
        gap: 5px;
    }

    .pig-page-indicator {
        min-width: 60px;
        padding: 10px 5px;
    }

    .pig-indicator-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .pig-indicator-label {
        font-size: 10px;
    }

    .pig-form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .pig-prev-button,
    .pig-next-button {
        margin: 0;
        width: 100%;
    }
}

/* Loading State */
.pig-form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error States */
.pig-input.error,
.pig-select.error,
.pig-textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.pig-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Program Themes */
.pig-themes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.pig-theme-checkbox {
    display: block;
    cursor: pointer;
    margin: 0;
}

.pig-theme-checkbox input[type="checkbox"] {
    display: none;
}

.pig-theme-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pig-theme-checkbox:hover .pig-theme-card {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.pig-theme-checkbox input[type="checkbox"]:checked + .pig-theme-card {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.pig-theme-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pig-theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pig-theme-content {
    flex: 1;
}

.pig-theme-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.pig-theme-description {
    margin: 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.pig-theme-checkmark {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.pig-theme-checkbox input[type="checkbox"]:checked + .pig-theme-card .pig-theme-checkmark {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.pig-theme-checkmark svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .pig-themes-container {
        grid-template-columns: 1fr;
    }
    
    .pig-theme-image {
        height: 120px;
    }
}

/* Program Activities (similar to themes) */
.pig-activities-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.pig-activity-checkbox {
    display: block;
    cursor: pointer;
    margin: 0;
}

.pig-activity-checkbox input[type="checkbox"] {
    display: none;
}

.pig-activity-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pig-activity-checkbox:hover .pig-activity-card {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.pig-activity-checkbox input[type="checkbox"]:checked + .pig-activity-card {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.pig-activity-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pig-activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pig-activity-content {
    flex: 1;
}

.pig-activity-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.pig-activity-description {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.pig-activity-timing,
.pig-activity-period,
.pig-activity-fee {
    margin: 5px 0;
    font-size: 12px;
    color: #555555;
}

.pig-activity-timing strong,
.pig-activity-fee strong {
    color: #333333;
    font-weight: 600;
}

.pig-activity-checkmark {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.pig-activity-checkbox input[type="checkbox"]:checked + .pig-activity-card .pig-activity-checkmark {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.pig-activity-checkmark svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .pig-activities-container {
        grid-template-columns: 1fr;
    }
    
    .pig-activity-image {
        height: 120px;
    }
}

/* Meals Input Grid */
.pig-meals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.pig-meal-input-group {
    margin-bottom: 0;
}

.pig-meal-input-group label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
    display: block;
}

.pig-meal-input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.pig-meal-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .pig-meals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Terms and Conditions */
.pig-terms-conditions-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e0e0e0;
}

.pig-terms-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.pig-term-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.pig-term-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.pig-term-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: 8px;
}

.pig-term-content {
    flex: 1;
}

.pig-term-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.pig-term-description {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.pig-terms-agreement {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.pig-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pig-checkbox-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.pig-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.pig-checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.pig-checkbox-label span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .pig-terms-conditions-container {
        padding: 20px 15px;
    }
    
    .pig-terms-list {
        max-height: 300px;
    }
    
    .pig-term-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .pig-term-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

