/* Chinh Sach Module Styles */
.hdev-cs-wrapper {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hdev-cs-title {
    text-align: center;
    font-family: var(--hdev-font-heading);
    font-size: var(--hdev-fs-h2, 3rem);
    background: var(--hdev-color-heading-text, #005a5a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.hdev-cs-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.hdev-cs-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    /* Gradient Border Trick */
    border: 1px solid transparent;
    border-radius: 10px;
    background-image: linear-gradient(#fff, #fff), var(--hdev-gradient-gold, linear-gradient(45deg, #d4af37, #f3e5ab, #d4af37));
    background-origin: border-box;
    background-clip: padding-box, border-box;

    padding: 20px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Pseudo-element removed as we use background-clip for border */
.hdev-cs-box::before {
    display: none;
}

.hdev-cs-box-title {
    font-family: var(--hdev-font-heading);
    font-size: var(--hdev-fs-h3);
    color: #e3c277;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.hdev-cs-box-desc {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Form Wrapper */
.hdev-cs-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    /* Gradient Border 3px */
    border: 3px solid transparent;
    border-radius: 15px;
    background-image: linear-gradient(135deg, #128c7e 0%, #075e54 100%), var(--hdev-gradient-gold, linear-gradient(45deg, #d4af37, #f3e5ab, #d4af37));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 30px 30px 0 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hdev-cs-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.hdev-cs-form-title {
    color: #fff;
    font-family: var(--hdev-font-heading);
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
}

.hdev-cs-form-desc {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

/* Contact Form 7 Customization */
.hdev-cs-form-content .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.hdev-cs-form-content .wpcf7 input[type="text"],
.hdev-cs-form-content .wpcf7 input[type="email"],
.hdev-cs-form-content .wpcf7 input[type="tel"] {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 15px;
    color: #333;
    margin-bottom: 0;
}

/* Layout for form inputs - 3 columns on Desktop */
.hdev-cs-form-content form>p {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 0;
}

/* Fix CF7 Auto-P for submit button */
.hdev-cs-form-content form p {
    margin: 0;
    text-align: inherit;
}

.hdev-cs-form-content form>p>span,
.hdev-cs-form-content form>p>input[type="submit"] {
    flex: 1;
    min-width: 200px;
}

.hdev-cs-form-content input[type="submit"] {
    background: var(--hdev-gradient-gold, linear-gradient(45deg, #d4af37, #f3e5ab, #d4af37));
    color: #fff;
    /* Might need text color adjustment depending on gold brightness */
    color: #005a5a;
    /* Dark Text for contract */
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    min-width: 200px;
    width: fit-content;
    margin: 30px auto 0 auto;
}

.hdev-cs-form-content form {
    margin-bottom: 0;
}

.hdev-cs-form-content input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Laptop Responsive (1025px - 1536px) - Optimize spacing to fit screen */
@media (min-width: 1025px) and (max-width: 1536px) {
    .hdev-cs-wrapper {
        padding: 40px 0;
        /* Reduce Vertical Spacing */
    }

    .hdev-cs-content {
        /* Standard scaling across browsers */
        transform: scale(0.9);
        transform-origin: center center;
        width: 100%;
        /* Fix Layout Height calculation if needed */
    }

    .hdev-cs-title {
        margin-bottom: 25px;
    }

    .hdev-cs-grid {
        margin-bottom: 30px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hdev-cs-grid {
        flex-direction: column;
    }

    .hdev-cs-form-content form>p {
        flex-direction: column;
    }
}