/**
 * Gracie Brandon Contact Form - Frontend Styles
 */

/* ==========================================================================
   Floating Button
   ========================================================================== */

.gbcf-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.gbcf-floating-button.position-left {
    left: 20px;
    right: auto;
}

.gbcf-floating-button .gbcf-btn-open {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #ffffff;
    border: none;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                0 0 40px rgba(0, 212, 255, 0.3),
                0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: gbcf-float 3s ease-in-out infinite;
    position: relative;
}

.gbcf-floating-button .gbcf-btn-open:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00aaff 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8),
                0 0 60px rgba(0, 212, 255, 0.5),
                0 8px 20px rgba(0, 0, 0, 0.2);
}

.gbcf-floating-button .gbcf-btn-open:active {
    transform: translateY(-2px) scale(1.02);
}

/* Floating animation */
@keyframes gbcf-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse animation on page load */
@keyframes gbcf-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                    0 0 40px rgba(0, 212, 255, 0.3),
                    0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8),
                    0 0 60px rgba(0, 212, 255, 0.5),
                    0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.gbcf-floating-button.gbcf-pulse .gbcf-btn-open {
    animation: gbcf-pulse 2s ease-in-out 3, gbcf-float 3s ease-in-out infinite;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.gbcf-contact-form {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 380px;
    max-height: 90vh;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px 12px 0 0;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gbcf-contact-form.position-left {
    left: 20px;
    right: auto;
}

.gbcf-form-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Form Header */
.gbcf-form-header {
    background-color: var(--gbcf-primary-color, #E31E24);
    color: #ffffff;
    padding: 20px;
    position: relative;
}

.gbcf-btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    color: #E31E24;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gbcf-btn-close:hover {
    background: #f5f5f5;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.gbcf-header-content {
    padding-right: 40px;
}

.gbcf-countdown-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gbcf-countdown-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.gbcf-countdown-timer {
    background-color: #000000;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.gbcf-form-header h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: bold;
}

.gbcf-form-header h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: bold;
}

.gbcf-form-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Form Body */
.gbcf-form-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.gbcf-form-messages {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.gbcf-form-messages.error {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
    display: block;
}

.gbcf-form-messages.success {
    background-color: #efe;
    color: #0a0;
    border: 1px solid #cfc;
    display: block;
}

.gbcf-form-field {
    margin-bottom: 16px;
}

.gbcf-form-field input[type="text"],
.gbcf-form-field input[type="email"],
.gbcf-form-field input[type="tel"],
.gbcf-form-field select {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gbcf-form-field input:focus,
.gbcf-form-field select:focus {
    outline: none;
    border-color: var(--gbcf-primary-color, #E31E24);
}

.gbcf-btn-submit {
    width: 100%;
    height: 60px;
    background-color: var(--gbcf-secondary-color, #000000);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.gbcf-btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gbcf-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gbcf-disclaimer {
    margin-top: 16px;
    font-size: 11px;
    color: #666666;
    line-height: 1.4;
}

/* ==========================================================================
   Schedule Popup
   ========================================================================== */

.gbcf-schedule-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.gbcf-schedule-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.gbcf-schedule-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gbcf-schedule-header {
    background-color: #ffffff;
    padding: 20px 30px;
    border-bottom: 2px solid var(--gbcf-primary-color, #E31E24);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gbcf-schedule-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.gbcf-schedule-close {
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #333;
    transition: opacity 0.2s;
}

.gbcf-schedule-close:hover {
    opacity: 0.6;
}

.gbcf-schedule-body {
    overflow-y: auto;
    flex: 1;
}

.gbcf-schedule-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    min-height: 500px;
}

.gbcf-schedule-left {
    padding: 30px;
    overflow-y: auto;
}

.gbcf-schedule-right {
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 1px solid #e5e5e5;
}

/* Schedule Tables */
.gbcf-schedule-content h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
}

.gbcf-schedule-content h2:first-child {
    margin-top: 0;
}

.gbcf-schedule-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.gbcf-schedule-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
    font-size: 14px;
}

.gbcf-schedule-table thead {
    background-color: #f5f5f5;
}

.gbcf-schedule-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 2px solid #e5e5e5;
}

.gbcf-schedule-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.gbcf-schedule-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.gbcf-schedule-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.gbcf-schedule-table .time-col {
    font-weight: bold;
    white-space: nowrap;
}

/* Free Trial Form */
.gbcf-free-trial-form {
    background-color: #ffffff;
    border: 2px solid var(--gbcf-primary-color, #E31E24);
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 0;
}

.gbcf-trial-header {
    text-align: center;
    margin-bottom: 20px;
}

.gbcf-trial-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
}

.gbcf-trial-subheader {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.gbcf-free-trial-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.gbcf-free-trial-form input[type="text"],
.gbcf-free-trial-form input[type="email"],
.gbcf-free-trial-form input[type="tel"],
.gbcf-free-trial-form select {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gbcf-free-trial-form input:focus,
.gbcf-free-trial-form select:focus {
    outline: none;
    border-color: var(--gbcf-primary-color, #E31E24);
}

.gbcf-radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.gbcf-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-weight: normal;
}

.gbcf-btn-register {
    width: 100%;
    height: 56px;
    background-color: var(--gbcf-primary-color, #E31E24);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.gbcf-btn-register:hover {
    background-color: var(--gbcf-primary-color-dark, #c71a1f);
}

.gbcf-btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gbcf-form-messages-trial {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.gbcf-form-messages-trial.error {
    background-color: #fee;
    color: #c00;
    border: 1px solid #fcc;
    display: block;
}

.gbcf-form-messages-trial.success {
    background-color: #efe;
    color: #0a0;
    border: 1px solid #cfc;
    display: block;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    .gbcf-floating-button {
        right: 10px;
        bottom: 10px;
    }

    .gbcf-floating-button .gbcf-btn-open {
        padding: 14px 20px;
        font-size: 14px;
    }

    .gbcf-contact-form {
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .gbcf-schedule-modal {
        width: 95%;
        max-height: 95vh;
    }

    .gbcf-schedule-layout {
        grid-template-columns: 1fr;
    }

    .gbcf-schedule-right {
        border-left: none;
        border-top: 1px solid #e5e5e5;
    }

    .gbcf-free-trial-form {
        position: static;
    }

    .gbcf-schedule-left,
    .gbcf-schedule-right {
        padding: 20px;
    }

    .gbcf-form-header {
        padding: 15px;
    }

    .gbcf-header-content {
        padding-right: 40px;
    }

    .gbcf-btn-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .gbcf-form-header h2 {
        font-size: 18px;
    }

    .gbcf-form-header h3 {
        font-size: 16px;
    }

    .gbcf-countdown-label {
        font-size: 10px;
    }

    .gbcf-countdown-timer {
        font-size: 14px;
        padding: 4px 10px;
    }

    .gbcf-schedule-table {
        font-size: 12px;
    }

    .gbcf-schedule-table th,
    .gbcf-schedule-table td {
        padding: 8px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes gbcf-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gbcf-slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gbcf-contact-form {
    animation: gbcf-slideUp 0.3s ease-out;
}

.gbcf-schedule-popup {
    animation: gbcf-fadeIn 0.3s ease-out;
}

/* ==========================================================================
   Body Lock (when popup is open)
   ========================================================================== */

body.gbcf-popup-open {
    overflow: hidden;
}
