
.contact-section {
    padding: 5rem 0;
    background: transparent;
    background-image: linear-gradient(to right, rgb(104, 96, 226), rgb(5, 186, 214));
    text-align:left;
}

.contact-section .section-title {
    color: rgba(255, 255, 255, 1);
}

.contact-section .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section .section-title, 
.contact-section .section-description {
    text-align:center;
}
.contact-content {
    display: grid;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Contact Info Section */
.contact-info-section {
    padding: 8rem 0 4rem;
    background: #f8fafc;
}

.contact-info-section .info-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: #6366f1;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color:#fff;
}
.contact-info-icon svg {
    width: 30px;
    height: 30px;
}



/* 폼 컴포넌트 스타일 */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 400;
    color: rgba(0,0,0,0.8);
}

.form-group input,
.form-group textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    resize:none;
}

.form-group input:focus,
.form-group textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    outline: none;
    border-color: rgba(255,255,255,1);
    background: rgba(255, 255, 255, 0.9);
}

/* 파일 업로드 스타일 */
.contact-form input[type="file"] {
    position: relative;
    width: 100%;
    padding: 10px 12px 10px 120px;
    margin: 1em 0 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.8);
    height: 45px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    line-height: 25px;
}

.contact-form input[type="file"]::file-selector-button {
    position: absolute;
    top: -1px;
    left: -1px;
    height: 45px;
    width: 110px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px 0 0 8px;
    background: #6366f1;
    color: white;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 45px;
}

.contact-form input[type="file"]:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #6366f1;
}

/* 체크박스 & 라디오 버튼 스타일 */
.contact-form .checkbox-group {
    width:30%
}
.contact-form .checkbox-group input[type="checkbox"] {
    display: none;
}
.checkbox-group label {margin-bottom:0;}

.contact-form .checkbox-group label {
    display: inline-block;
    color:rgba(0,0,0,0.8);
    font-weight:400;
    width:100%;
    text-align:center;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form .checkbox-group input[type="checkbox"]:checked + label {
    background: rgba(255,255,255,0.9);
    color: rgba(0, 0, 0, 0.9);
    font-weight: 500;
    transform: scale(1.05);
}

.contact-form .checkbox-group label:hover {
    background: rgba(255,255,255,0.9);
}

.contact-form .privacy-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form button {
    background: #6366f1;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

.contact-form .privacy-agreement {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.privacy-agreement .agreement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.privacy-agreement .agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-agreement button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #6366f1;
    color: #6366f1;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.privacy-agreement button:hover {
    background: #6366f1;
    color: white;
}

.privacy-detail {
    display: none;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
    max-height: 300px;
    max-width:100%;
    width:100%;
    overflow-x:hidden;
    overflow-y:auto;
}

.privacy-detail.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.privacy-detail h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.privacy-detail p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.privacy-content {
    color: #4a5568;
}

.privacy-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 1.5rem 0 1rem;
}

.privacy-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 1rem 0 0.5rem;
}

.privacy-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.privacy-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-form .privacy-agreement input[type="checkbox"] {
    position: relative;
    appearance: none;
    width: 24px;
    height: 24px;
    padding:0;
    border: 2px solid #6366f1;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.contact-form .privacy-agreement input[type="checkbox"]:checked {
    position:relative;
    background: #6366f1;
    border-color: #6366f1;
    color:#fff;
}

.contact-form .privacy-agreement input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    width:100%;
    height:100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 배경색이 실제 색상이 됩니다 */
    background-color: white;

    /* SVG를 마스크로 사용 */
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z'%3E%3C/path%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    /* Webkit prefix (크롬, 사파리 대응) */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.contact-form .privacy-agreement label {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    user-select: none;
    margin-bottom:0;
}

.contact-form button.full-width {
    width: 100%;
}

/* 체크박스 & 라디오 버튼 스타일 */
.project-options,
.budget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-options .checkbox-group,
.budget-options .radio-group {
    width: calc(100% / 3 - 0.5rem * 2 / 3);
    margin: 0;
}


.project-options .checkbox-group input[type="checkbox"],
.budget-options .radio-group input[type="radio"] {
    display: none;
}

.project-options .checkbox-group label,
.budget-options .radio-group label {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #ddd;
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    white-space:nowrap;
}

.project-options .checkbox-group input[type="checkbox"]:checked + label,
.budget-options .radio-group input[type="radio"]:checked + label {
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.9);
    font-weight: 500;
    transform: scale(1.01);
}

.project-options .checkbox-group label:hover,
.budget-options .radio-group label:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* 개인정보 처리방침 체크박스 */
.privacy-agreement {
    margin-top: 2rem;
}

.privacy-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.privacy-agreement label {
    font-size: 1rem;
    color: #333;
}

/* 담당자 정보 입력 스타일 */
.contact-form .input-group {
    display: flex;
    flex-wrap:wrap;
    gap: 0.5rem;
}

.contact-form .input-group input {
    width: calc(50% - 0.5rem / 2);
    margin-bottom: 0;
}


/* 반응형 */
@media (max-width: 768px) {
    .contact-info-section .info-wrap {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 1.5rem;
    }
}



/* 반응형 */

@media (max-width: 768px) {
    .privacy-agreement .agreement-header {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .privacy-agreement .agreement-checkbox {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        order: 2;
    }

    .privacy-agreement button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        order: 1;
    }

    .privacy-agreement label {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .privacy-detail {
        margin-top: 0.5rem;
        max-height: 200px;
    }

    .privacy-detail h3 {
        font-size: 1rem;
    }

    .privacy-detail p {
        font-size: 0.9rem;
    }
    .project-options .checkbox-group  {
        width: calc(100% / 2 - 0.5rem * 2 / 3);
        margin: 0;
    }
    .budget-options .radio-group {
        width: 100%;
        margin: 0;
    }
    .contact-form .input-group input {
        width: 100%;
        margin-bottom: 0;
    }

    .contact-info-section .container > div {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section .info-card {
        padding: 1.5rem;
    }
    
    .contact-form input[type="file"] {
        padding: 10px 12px 10px 0px;
    }
}