/* =====================================================
   Contact Page Styles
   Blue Theme - Matching CODE-RAY XG Design
   ===================================================== */

/* CSS Variables - Blue Theme (Same as CODE-RAY XG) */
:root {
    --ct-primary: #0052CC;
    --ct-primary-light: #0066FF;
    --ct-primary-dark: #003D99;
    --ct-secondary: #00B8D9;
    --ct-accent: #36B37E;
    --ct-success: #36B37E;
    --ct-danger: #FF5630;
    --ct-warning: #FFAB00;

    /* Light theme backgrounds */
    --ct-bg-primary: #FFFFFF;
    --ct-bg-secondary: #F0F7FF;
    --ct-bg-tertiary: #E6F0FF;
    --ct-bg-card: #FFFFFF;

    /* Text colors */
    --ct-text-primary: #172B4D;
    --ct-text-secondary: #5E6C84;
    --ct-text-muted: #97A0AF;

    /* Borders and shadows */
    --ct-border: #DFE1E6;
    --ct-shadow-sm: 0 1px 2px 0 rgba(0, 82, 204, 0.05);
    --ct-shadow: 0 4px 6px -1px rgba(0, 82, 204, 0.1), 0 2px 4px -1px rgba(0, 82, 204, 0.06);
    --ct-shadow-lg: 0 10px 15px -3px rgba(0, 82, 204, 0.1), 0 4px 6px -2px rgba(0, 82, 204, 0.05);
    --ct-shadow-xl: 0 20px 25px -5px rgba(0, 82, 204, 0.1), 0 10px 10px -5px rgba(0, 82, 204, 0.04);

    /* Gradients */
    --ct-gradient-primary: linear-gradient(135deg, #0052CC 0%, #00B8D9 100%);
    --ct-gradient-light: linear-gradient(135deg, #E6F0FF 0%, #E6FCFF 100%);
}

/* =====================================================
   Contact Page Base
   ===================================================== */
.ct-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ct-text-primary);
    background: var(--ct-bg-primary);
}

/* =====================================================
   Contact Section
   ===================================================== */
.ct-contact-section {
    padding: 80px 0;
    background: var(--ct-bg-secondary);
}

.ct-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ct-section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ct-text-primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.ct-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--ct-gradient-primary);
    border-radius: 2px;
}

.ct-section-header p {
    font-size: 1.125rem;
    color: var(--ct-text-secondary);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.7;
}

/* =====================================================
   Info Cards
   ===================================================== */
.ct-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ct-info-card {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--ct-shadow);
}

.ct-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ct-shadow-lg);
    border-color: var(--ct-primary-light);
}

.ct-info-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ct-gradient-primary);
    border-radius: 14px;
    flex-shrink: 0;
}

.ct-info-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.ct-info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ct-text-primary);
    margin-bottom: 6px;
}

.ct-info-content p {
    font-size: 0.9375rem;
    color: var(--ct-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.ct-info-content a {
    color: var(--ct-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ct-info-content a:hover {
    color: var(--ct-primary-dark);
    text-decoration: underline;
}

/* =====================================================
   Contact Form
   ===================================================== */
.ct-form-card {
    background: var(--ct-bg-card);
    border: 1px solid var(--ct-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--ct-shadow-lg);
}

.ct-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ct-text-primary);
    margin-bottom: 8px;
}

.ct-form-subtitle {
    font-size: 0.9375rem;
    color: var(--ct-text-secondary);
    margin-bottom: 32px;
}

.ct-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ct-form-group {
    margin-bottom: 20px;
}

.ct-form-group.full-width {
    grid-column: 1 / -1;
}

.ct-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ct-text-primary);
    margin-bottom: 8px;
}

.ct-form-label .required {
    color: var(--ct-danger);
    margin-left: 4px;
}

.ct-form-input,
.ct-form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9375rem;
    color: var(--ct-text-primary);
    background: var(--ct-bg-primary);
    border: 1px solid var(--ct-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ct-form-input:focus,
.ct-form-textarea:focus {
    outline: none;
    border-color: var(--ct-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.ct-form-input::placeholder,
.ct-form-textarea::placeholder {
    color: var(--ct-text-muted);
}

.ct-form-textarea {
    min-height: 150px;
    resize: vertical;
}

.ct-form-error {
    font-size: 0.8125rem;
    color: var(--ct-danger);
    margin-top: 6px;
}

/* =====================================================
   Privacy Agreement Section
   ===================================================== */
.ct-privacy-section {
    background: var(--ct-bg-secondary);
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.ct-privacy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ct-privacy-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ct-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-privacy-title i {
    color: var(--ct-primary);
}

.ct-privacy-link {
    font-size: 0.8125rem;
    color: var(--ct-primary);
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.ct-privacy-link:hover {
    color: var(--ct-primary-dark);
    text-decoration: underline;
}

.ct-privacy-summary {
    font-size: 0.8125rem;
    color: var(--ct-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--ct-bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--ct-primary);
}

.ct-privacy-summary ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.ct-privacy-summary li {
    margin-bottom: 4px;
}

.ct-privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--ct-bg-card);
    border-radius: 8px;
    border: 2px solid var(--ct-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ct-privacy-checkbox:hover {
    border-color: var(--ct-primary-light);
}

.ct-privacy-checkbox.checked {
    border-color: var(--ct-primary);
    background: rgba(0, 82, 204, 0.02);
}

.ct-privacy-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--ct-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.ct-privacy-checkbox-label {
    font-size: 0.9375rem;
    color: var(--ct-text-primary);
    line-height: 1.5;
}

.ct-privacy-checkbox-label .required {
    color: var(--ct-danger);
    font-weight: 600;
}

/* =====================================================
   Submit Button
   ===================================================== */
.ct-submit-wrapper {
    text-align: center;
    padding-top: 16px;
}

.ct-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--ct-gradient-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.4);
}

.ct-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.5);
}

.ct-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ct-submit-btn i {
    font-size: 1.125rem;
}

/* =====================================================
   Success Alert
   ===================================================== */
.ct-alert-success {
    background: linear-gradient(135deg, #E3FCEF 0%, #E6FCFF 100%);
    border: 1px solid var(--ct-success);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ct-alert-success i {
    font-size: 1.5rem;
    color: var(--ct-success);
}

.ct-alert-success span {
    font-size: 1rem;
    color: var(--ct-text-primary);
    font-weight: 500;
}

.ct-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--ct-text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.ct-alert-close:hover {
    color: var(--ct-text-primary);
}

/* =====================================================
   Privacy Modal
   ===================================================== */
.ct-modal-header {
    background: var(--ct-gradient-primary);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
}

.ct-modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.ct-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.ct-modal-header .btn-close:hover {
    opacity: 1;
}

.ct-modal-body {
    padding: 32px;
    max-height: 60vh;
    overflow-y: auto;
}

.ct-modal-body h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ct-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ct-bg-secondary);
}

.ct-modal-body h6:first-child {
    margin-top: 0;
}

.ct-modal-body p,
.ct-modal-body li {
    font-size: 0.9375rem;
    color: var(--ct-text-secondary);
    line-height: 1.7;
}

.ct-modal-body ul {
    padding-left: 20px;
    margin: 12px 0;
}

.ct-modal-body li {
    margin-bottom: 6px;
}

.ct-modal-body .table {
    margin: 16px 0;
    border-radius: 8px;
    overflow: hidden;
}

.ct-modal-body .table th {
    background: var(--ct-bg-secondary);
    color: var(--ct-text-primary);
    font-weight: 600;
}

.ct-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--ct-border);
}

.ct-modal-btn {
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
}

.ct-modal-btn-primary {
    background: var(--ct-gradient-primary);
    border: none;
    color: #fff;
}

.ct-modal-btn-primary:hover {
    transform: translateY(-1px);
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 991px) {
    .ct-contact-section {
        padding: 60px 0;
    }

    .ct-section-header {
        margin-bottom: 40px;
    }

    .ct-section-header h2 {
        font-size: 1.875rem;
    }

    .ct-info-cards {
        margin-bottom: 32px;
    }

    .ct-form-card {
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .ct-contact-section {
        padding: 40px 0;
    }

    .ct-section-header h2 {
        font-size: 1.5rem;
    }

    .ct-section-header p {
        font-size: 1rem;
    }

    .ct-form-row {
        grid-template-columns: 1fr;
    }

    .ct-info-card {
        padding: 20px;
    }

    .ct-form-card {
        padding: 24px 20px;
    }

    .ct-privacy-section {
        padding: 20px 16px;
    }

    .ct-submit-btn {
        width: 100%;
        padding: 14px 24px;
    }
}
