/* GCT Frontend Styles */

.gct-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-self: flex-start; /* Prevent Elementor stretching */
    gap: 30px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px auto;
    max-width: 1200px;
    color: #333;
    height: auto !important;
}

.gct-left-column {
    flex: 1;
    min-width: 300px;
    background: #fdfdfd;
    padding: 15px 15px 5px 15px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    align-self: flex-start; /* Prevent stretching inside container */
}

.gct-right-column {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

/* Accordion Styles */
.gct-accordion-section {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.gct-accordion-header {
    background: linear-gradient(to right, #1282A5, #22B760);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    transition: filter 0.2s;
}

.gct-accordion-header:hover {
    filter: brightness(1.1);
}

.gct-accordion-content {
    display: none;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.gct-accordion-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Inputs */
.gct-input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

.gct-input-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gct-input-group label {
    flex: 1;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    color: #444;
    padding-right: 15px;
    line-height: 1.3;
}

.gct-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: right;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gct-input:focus {
    border-color: #22B760;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 183, 96, 0.2);
}

/* Buttons */
.gct-btn-submit {
    background: #22B760;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(34, 183, 96, 0.3) !important;
}

.gct-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 183, 96, 0.4) !important;
}

.gct-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Chart Filters */
.gct-chart-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.gct-filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.gct-filter-btn:hover {
    border-color: #22B760;
    color: #22B760;
}

.gct-filter-btn.active {
    border-color: #22B760;
    color: #22B760;
    box-shadow: 0 0 0 1px #22B760;
    font-weight: 600;
}

/* Chart Container */
.gct-chart-container {
    width: 100%;
    height: 400px;
    position: relative;
}

/* 2 & 3 Column Form Layouts */
.gct-form-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: start;
}

.gct-form-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: start;
}

.gct-form-2col .gct-accordion-section,
.gct-form-3col .gct-accordion-section {
    margin-bottom: 0;
}

.gct-guest-message-side {
    grid-column: 3;
    grid-row: 1 / 100; /* Spans across all rows */
    align-self: start;
}

.gct-guest-message h3,
.gct-guest-message p {
    font-weight: normal !important;
}

.gct-guest-message h3 {
    font-size: 1em !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

.gct-guest-message p {
    font-size: 0.6em !important;
    margin-bottom: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gct-container {
        flex-direction: column;
    }
    
    .gct-form-2col,
    .gct-form-3col {
        grid-template-columns: 1fr;
    }
    
    .gct-guest-message-side {
        grid-column: 1;
        grid-row: auto;
    }
    
    /* Ensure button spans full width on mobile if previously constrained */
    .gct-form-3col > div[style*="grid-column"] {
        grid-column: 1 / -1 !important;
    }

    .gct-floating-notification {
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        border-left: none;
        border-top: 4px solid #22B760;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Floating Notification */
.gct-floating-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 999999;
    border-left: 4px solid #22B760;
    animation: gct-slide-up 0.5s ease-out;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gct-fn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gct-fn-icon {
    font-size: 20px;
}

.gct-fn-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.gct-fn-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gct-fn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.gct-fn-close:hover {
    color: #333;
}

@keyframes gct-slide-up {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
