/**
 * Tours to Turkey - Custom Form Frontend Styles
 * 100% Full Width Responsive Modern Layout
 */

.tt-form-wrapper {
    width: 100% !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tt-form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.tt-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.tt-form-group {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.tt-col-100 {
    flex: 0 0 100%;
    width: 100%;
}

.tt-col-50 {
    flex: 0 0 calc(50% - 9px);
    width: calc(50% - 9px);
}

.tt-col-33 {
    flex: 0 0 calc(33.333% - 12px);
    width: calc(33.333% - 12px);
}

@media (max-width: 768px) {
    .tt-col-50, .tt-col-33 {
        flex: 0 0 100%;
        width: 100%;
    }
    .tt-form-container {
        padding: 24px 18px;
    }
}

.tt-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
    display: block;
}

.tt-required-star {
    color: #ef4444;
    margin-left: 2px;
}

.tt-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tt-form-control:focus {
    background: #ffffff;
    border-color: #0e7490;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

.tt-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.tt-form-select {
    cursor: pointer;
    appearance: auto;
}

/* Destinations & Checkbox Cards Grid */
.tt-checkbox-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.tt-checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tt-checkbox-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tt-checkbox-card input[type="checkbox"] {
    display: none;
}

.tt-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #94a3b8;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #ffffff;
}

.tt-checkbox-card input[type="checkbox"]:checked + .tt-checkbox-custom {
    background: #0e7490;
    border-color: #0e7490;
}

.tt-checkbox-card input[type="checkbox"]:checked + .tt-checkbox-custom::after {
    content: "✓";
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.tt-checkbox-card.is-checked {
    background: #f0fdfa;
    border-color: #0e7490;
}

.tt-checkbox-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

/* Submit Button */
.tt-form-submit-row {
    margin-top: 10px;
}

.tt-btn-submit {
    width: 100%;
    padding: 16px 28px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #ffffff;
    background: #d97706;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.tt-btn-submit:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

.tt-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tt-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tt-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes tt-spin {
    to { transform: rotate(360deg); }
}

/* Status Message Box */
.tt-form-status-msg {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

.tt-form-status-msg.tt-status-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.tt-form-status-msg.tt-status-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Direct Contact Footer */
.tt-form-direct-contact {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.tt-contact-hint {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}

.tt-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tt-btn-contact-wa, .tt-btn-contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tt-btn-contact-wa {
    background: #25d366;
    color: #ffffff !important;
}

.tt-btn-contact-wa:hover {
    background: #1eb857;
}

.tt-btn-contact-email {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
}

.tt-btn-contact-email:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
