/* Custom Contact Form Styles */

/* Errors */
.ccf-errors {
    background-color: #ffe6e6;
    border: 1px solid #ff9999;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.ccf-errors ul {
    margin: 0;
    padding-left: 2rem;
}

.ccf-errors li {
    color: #cc0000;
    margin-bottom: 5px;
}

/* Form Fields */
.ccf-field {
    padding: 2rem 0;
    border-top: var(--cl-border) 1px solid;
}

.ccf-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.ccf-field .required {
    color: #cc0000;
}

.ccf-field input[type="text"],
.ccf-field input[type="tel"],
.ccf-field input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.ccf-field input[type="file"] {
    padding: 5px 0;
}

.ccf-field select {
    width: 100%;
    height: 50px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}
.ccf-field:has(select) {
    position: relative;
}
.ccf-field:has(select)::before {
    position: absolute; top: 50%; right: 2rem; content: ""; display: block; width: 0.8em; height: 0.8em; mask: url(/assets/images/recruit/common/ar_right.svg) no-repeat center center / contain; background-color: var(--cl-key); transform: translate(0,-50%) rotate(90deg); pointer-events: none;
}

.ccf-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
}

/* Date Group */
.ccf-date-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ccf-date-group input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

/* Radio Group */
.ccf-radio-group {
    display: flex;
    gap: 20px;
}

.ccf-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.ccf-radio-group input[type="radio"] {
    margin-right: 5px;
}

/* Checkbox Label */
.ccf-checkbox-label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.ccf-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
}

/* Agreements Section */
.ccf-agreements {
    background-color: #f9f9f9;
    margin-bottom: 1.5rem;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.ccf-field .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Buttons */
.ccf-submit {
    max-width: 54rem;
    margin: 3rem auto 0;
}

.ccf-submit-send {
    position: relative;
    margin-top: 1rem;
    background-color: var(--cl-key);
    border: var(--cl-key) 1px solid;
    color: var(--cl-wh);
    transition: background-color 0.3s;
}

.ccf-submit-send::before { content: ""; display: block; position: absolute; top: 50%; right: 2rem; transform: translate(0,-50%); width: 0.8em; height: 0.8em; mask: url(/assets/images/recruit/common/ar_right.svg) no-repeat center center / contain; background-color: var(--cl-wh); }
.ccf-submit-send::after { display: none;}

.ccf-button {
    display: inline-block;
    padding: 2rem;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ccf-button-secondary {
    background-color: #666;
    margin-right: 10px;
}

.ccf-button-secondary:hover {
    background-color: #444;
}

/* Confirm Table */
.ccf-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.ccf-confirm-table th,
.ccf-confirm-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.ccf-confirm-table th {
    background-color: #f5f5f5;
    width: 30%;
    font-weight: bold;
}

/* Success Message */
.ccf-success-message {
    background-color: var(--cl-wh);
    padding: 20px;
    text-align: center;
}

.ccf-success-message p {
    margin: 10px 0;
}

/* Responsive */
@media (min-width: 640px) {
    .ccf-field {
        display: grid;
        grid-template-columns: 1fr 2fr;
        padding: 3rem 0;
    }
    .ccf-field .description {
        grid-column: 2/3;
    }

    .ccf-field select {
        height: 60px;
    }

    .ccf-confirm-table th,
    .ccf-confirm-table td {
        display: block;
        width: 100%;
    }

    .ccf-confirm-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .ccf-confirm-table td {
        border-top: none;
        padding-top: 5px;
    }
    .ccf-agreements {
        display: block;
        margin-bottom: 1.5rem;
        padding: 2rem;
    }

    .ccf-submit-send:hover { background-color: var(--cl-wh); color: var(--cl-key); }
    .ccf-submit-send:hover::before { transform: translate(0, -50%); background-color: var(--cl-key); }

    .ccf-button {
        width: 100%;
        padding: 3rem;
    }

    .ccf-button:hover {
        opacity: 1;
        color: var(--cl-key);
    }
    .ccf-button-secondary {
        margin-right: 0;
    }
    .ccf-button-secondary:hover {
        margin-right: 0;
        color: var(--cl-wh);
    }
}

