/**
 * SML Contact Widget CSS
 * Clinical Precision Design - 연구소/바이오텍 스타일
 */

/* ============================================
   SML Contact - Clinical Precision Design
   ============================================ */

.sml-contact-section {
    --sml-primary: #0A2540;
    --sml-secondary: #00C9A7;
    --sml-accent: #00D4FF;
    --sml-bg-white: #FFFFFF;
    --sml-bg-gray: #F8FAFB;
    --sml-border: #E2E8F0;
    --sml-text: #1A1A2E;
    --sml-text-muted: #64748B;
    
    padding: 80px 20px;
}

.sml-contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sml-contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.sml-contact-title {
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--sml-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.sml-contact-subtitle {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 18px;
    color: var(--sml-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Split Layout */
.sml-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info Cards */
.sml-contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sml-contact-card {
    background: var(--sml-bg-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.06);
    border: 1px solid var(--sml-border);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.sml-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 201, 167, 0.12);
    border-color: var(--sml-secondary);
}

.sml-contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 12px;
    color: var(--sml-secondary);
    flex-shrink: 0;
}

.sml-contact-icon svg,
.sml-contact-icon i {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.sml-contact-card-content {
    flex: 1;
}

.sml-contact-card-title {
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--sml-primary);
    margin-bottom: 8px;
}

.sml-contact-card-text {
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    color: var(--sml-text-muted);
    line-height: 1.6;
}

.sml-contact-card-text a {
    color: var(--sml-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sml-contact-card-text a:hover {
    color: var(--sml-secondary);
}

/* Contact Form */
.sml-contact-form {
    background: var(--sml-bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(10, 37, 64, 0.08);
    border: 1px solid var(--sml-border);
}

.sml-contact-form-title {
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--sml-primary);
    margin-bottom: 24px;
}

.sml-form-group {
    margin-bottom: 20px;
}

.sml-form-label {
    display: block;
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--sml-text);
    margin-bottom: 8px;
}

.sml-form-label .required {
    color: #ef4444;
    margin-left: 4px;
}

.sml-form-input,
.sml-form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--sml-font-body, 'DM Sans', sans-serif);
    font-size: 15px;
    color: var(--sml-text);
    background: var(--sml-bg-gray);
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    outline: none;
}

.sml-form-input:focus,
.sml-form-textarea:focus {
    background: var(--sml-bg-white);
    border-color: var(--sml-secondary);
    box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.1);
}

.sml-form-input::placeholder,
.sml-form-textarea::placeholder {
    color: var(--sml-text-muted);
}

.sml-form-textarea {
    min-height: 140px;
    resize: vertical;
}

.sml-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sml-form-submit {
    width: 100%;
    padding: 16px 32px;
    font-family: var(--sml-font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--sml-primary);
    background: var(--sml-secondary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sml-form-submit:hover {
    background: var(--sml-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.35);
}

.sml-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Map Integration */
.sml-contact-map {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 24px;
}

.sml-contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .sml-contact-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .sml-contact-section {
        padding: 60px 16px;
    }

    .sml-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sml-contact-form {
        padding: 28px;
    }

    .sml-form-row {
        grid-template-columns: 1fr;
    }

    .sml-contact-card {
        flex-direction: column;
        text-align: center;
    }

    .sml-contact-icon {
        margin: 0 auto;
    }
}

/* ============================================
   Contact Form Wrapper Styles
   ============================================ */

.sml-contact-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.sml-contact-form-wrapper.style-modern .sml-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sml-contact-form-wrapper.style-classic .sml-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sml-contact-form-wrapper.style-minimal .sml-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.sml-contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sml-contact-right {
    display: flex;
    flex-direction: column;
}

.sml-contact-field {
    display: flex;
    flex-direction: column;
}

.sml-contact-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.sml-contact-required {
    color: #e74c3c;
    margin-left: 2px;
}

.sml-contact-input,
.sml-contact-textarea {
    padding: 12px 15px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #333;
    background-color: #f5f5f5;
    border-radius: 0;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.sml-contact-form-wrapper.style-classic .sml-contact-input,
.sml-contact-form-wrapper.style-classic .sml-contact-textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.sml-contact-form-wrapper.style-minimal .sml-contact-input,
.sml-contact-form-wrapper.style-minimal .sml-contact-textarea {
    border: none;
    border-bottom: 2px solid #e5e5e5;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.sml-contact-textarea {
    min-height: 100%;
    resize: vertical;
}

.sml-contact-form-wrapper.style-classic .sml-contact-textarea {
    min-height: 180px;
}

.sml-contact-required-note {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

/* Privacy Section */
.sml-contact-privacy-section {
    margin-top: 40px;
}

.sml-contact-privacy-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.sml-contact-privacy-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.sml-contact-privacy-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #fafafa;
}

.sml-contact-privacy-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.sml-contact-privacy-content {
    padding: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.sml-contact-privacy-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #555;
}

.sml-contact-privacy-content h4:first-child {
    margin-top: 0;
}

.sml-contact-privacy-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 5px 0;
}

/* Checkbox */
.sml-contact-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.sml-contact-checkbox {
    width: 20px;
    height: 20px;
}

.sml-contact-checkbox-label {
    font-size: 14px;
    color: #333;
}

.sml-contact-checkbox-label a {
    color: #00C9A7;
    text-decoration: none;
}

/* Submit Button */
.sml-contact-submit-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.sml-contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #00C9A7;
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sml-contact-submit-btn:hover {
    background-color: #00b396;
    transform: translateY(-2px);
}

.sml-contact-submit-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .sml-contact-form-wrapper.style-modern .sml-contact-grid,
    .sml-contact-form-wrapper.style-minimal .sml-contact-grid {
        grid-template-columns: 1fr;
    }
}
