/* ==================== GRABTECH SAFARI BOOKINGS - COMPLETE FRONTEND CSS ==================== */

.gsb-frontend-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gsb-frontend-card {
    max-width: 1000px;
    margin: 30px auto;
    background: #0c3e0b;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8f0fe;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    transition: all 0.3s ease;
}

.gsb-frontend-card:hover {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gsb-frontend-card:not(.gsb-contact-card) {
    border-left: 6px solid #0c3e0b !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.gsb-frontend-card:not(.gsb-contact-card)::before {
    content: 'Safari Booking';
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0e75b9, #1e40af);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(14, 117, 185, 0.3);
    z-index: 2;
}

.gsb-contact-card {
    border-left: 6px solid #10a37f;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.gsb-contact-card::before {
    content: '📞 Contact Us';
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10a37f, #059669);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 163, 127, 0.3);
    z-index: 2;
}

.gsb-frontend-card {
    padding: 50px;
}

.gsb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.gsb-col {
    display: flex;
    flex-direction: column;
    position: relative;
}

.gsb-col-span {
    grid-column: 1 / -1;
}

.gsb-frontend-card label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.gsb-frontend-card label:hover {
    color: #374151;
}

.gsb-required {
    color: #dc2626;
    font-weight: 800;
}

#gsb-form input[type="text"],
#gsb-form input[type="email"],
#gsb-form input[type="number"],
#gsb-form input[type="date"],
#gsb-form input[type="tel"],
#gsb-form select,
#gsb-form textarea,
#gsb-contact-form input[type="text"],
#gsb-contact-form input[type="email"],
#gsb-contact-form input[type="number"],
#gsb-contact-form input[type="tel"],
#gsb-contact-form select,
#gsb-contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.gsb-frontend-card:not(.gsb-contact-card) input:focus,
.gsb-frontend-card:not(.gsb-contact-card) select:focus,
.gsb-frontend-card:not(.gsb-contact-card) textarea:focus {
    border-color: #0e75b9;
    box-shadow: 0 0 0 4px rgba(14, 117, 185, 0.1);
    outline: none;
    background: #fafbff;
}

.gsb-contact-card input:focus,
.gsb-contact-card select:focus,
.gsb-contact-card textarea:focus {
    border-color: #10a37f;
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.1);
    outline: none;
    background: #f0fdf9;
}

.gsb-frontend-card select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px;
    cursor: pointer;
}

.gsb-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.gsb-inline-group:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.gsb-children-group {
    justify-content: center;
}

.gsb-accom-group {
    justify-content: space-between;
}

.gsb-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid transparent;
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.gsb-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.gsb-inline:hover::before {
    left: 100%;
}

.gsb-inline:hover {
    background: #f0f7ff;
    border-color: #0e75b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 117, 185, 0.1);
}

.gsb-contact-card .gsb-inline:hover {
    background: #f0fdf4;
    border-color: #10a37f;
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.1);
}

.gsb-inline input[type="radio"],
.gsb-inline input[type="checkbox"] {
    margin: 0;
    width: 20px;
    height: 20px;
    accent-color: #0e75b9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gsb-contact-card .gsb-inline input[type="radio"],
.gsb-contact-card .gsb-inline input[type="checkbox"] {
    accent-color: #10a37f;
}

.gsb-inline input[type="radio"]:hover,
.gsb-inline input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.gsb-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.gsb-help:hover {
    color: #4b5563;
}

.gsb-captcha-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding: 25px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    border: 2px solid #f59e0b;
    transition: all 0.3s ease;
}

.gsb-captcha-row:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    border-color: #d97706;
}

.gsb-captcha-row label {
    margin-bottom: 0;
    color: #92400e;
    font-weight: 700;
    font-size: 16px;
}

.gsb-captcha-row input {
    flex: 1;
    max-width: 140px;
    font-weight: 700;
    text-align: center;
    background: white;
    border-color: #f59e0b;
    font-size: 18px;
    padding: 15px;
    transition: all 0.3s ease;
}

.gsb-captcha-row input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.gsb-submit {
    background: #084402 !important;
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(14, 117, 185, 0.3);
    position: relative;
    overflow: hidden;
}

.gsb-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.gsb-submit:hover::before {
    left: 100%;
}

.gsb-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(14, 117, 185, 0.4);
    background: linear-gradient(135deg, #1e40af, #3730a3);
}

.gsb-contact-card .gsb-submit {
    background: linear-gradient(135deg, #10a37f, #059669);
    box-shadow: 0 8px 25px rgba(16, 163, 127, 0.3);
}

.gsb-contact-card .gsb-submit:hover {
    box-shadow: 0 12px 35px rgba(16, 163, 127, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.gsb-submit:disabled {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.gsb-submit:disabled::before {
    display: none;
}

.gsb-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.gsb-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 0 0 30px 0;
    border: 1px solid #34d399;
    font-weight: 600;
    text-align: center;
    animation: gsbSlideIn 0.5s ease-out;
}

.gsb-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 0 0 30px 0;
    border: 1px solid #f87171;
    font-weight: 600;
    text-align: center;
    animation: gsbShake 0.5s ease-in-out;
}

.gsb-domain-error {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 25px;
    border-radius: 12px;
    margin: 0 0 30px 0;
    border: 2px solid #f59e0b;
    font-weight: 600;
    text-align: center;
}

.gsb-error-msg {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.gsb-error-msg.show {
    opacity: 1;
    transform: translateY(0);
    animation: gsbErrorPulse 0.3s ease;
}

.gsb-error-msg::before {
    content: '⚠';
    font-size: 14px;
}

.gsb-contact-card .gsb-grid {
    grid-template-columns: 1fr;
}

.gsb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: gsb-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

/* Comment Form Styling */
.gsb-comment-protection {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    margin: 20px 0;
}

.gsb-comment-protection-fields {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.gsb-comment-field {
    display: flex;
    flex-direction: column;
}

.gsb-comment-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.gsb-comment-field input,
.gsb-comment-field textarea {
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gsb-comment-field input:focus,
.gsb-comment-field textarea:focus {
    border-color: #0e75b9;
    box-shadow: 0 0 0 3px rgba(14, 117, 185, 0.1);
    outline: none;
}

.gsb-comment-captcha {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f59e0b;
}

/* Animations */
@keyframes gsb-spin {
    to { transform: rotate(360deg); }
}

@keyframes gsbSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gsbShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes gsbErrorPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .gsb-frontend-card {
        padding: 30px 25px;
        margin: 20px 15px;
    }
    
    .gsb-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gsb-inline-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .gsb-inline {
        min-width: auto;
    }
    
    .gsb-captcha-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .gsb-captcha-row input {
        max-width: none;
    }
    
    .gsb-frontend-card:not(.gsb-contact-card)::before,
    .gsb-contact-card::before {
        position: relative;
        top: auto;
        right: auto;
        display: block;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .gsb-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gsb-frontend-card {
        padding: 25px 20px;
    }
    
    #gsb-form input[type="text"],
    #gsb-form input[type="email"],
    #gsb-form input[type="number"],
    #gsb-form input[type="date"],
    #gsb-form select,
    #gsb-form textarea,
    #gsb-contact-form input[type="text"],
    #gsb-contact-form input[type="email"],
    #gsb-contact-form input[type="number"],
    #gsb-contact-form select,
    #gsb-contact-form textarea {
        padding: 16px;
    }
}