/**
 * Contact Form (Gửi liên hệ) Page Styles
 * 
 * @package GiaoDienNguoiDung
 */

/* ============================================
   Navigation Tabs (.gy-nav)
   ============================================ */
.gy-nav {
    height: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.gy-nav ul {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gy-nav li {
    list-style: none;
}

.gy-nav li a {
    display: block;
    font-size: 16px;
    color: #1C2087;
    line-height: 18px;
    height: 35px;
    position: relative;
    text-decoration: none;
}

.gy-nav li:hover a,
.gy-nav li.sidenavcur a {
    font-size: 16px;
    font-weight: bold;
}

.gy-nav li:hover a:after,
.gy-nav li.sidenavcur a:after {
    position: absolute;
    width: 100%;
    height: 6px;
    content: "";
    background: #EA5404;
    left: 0;
    bottom: -3px;
}

/* ============================================
   Contact Form Section (.r1-orderform-1)
   ============================================ */
.r1-orderform-1 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.p4-order-form-1 {
    background: #fff;
}

.p4-titlel-1 {
    width: 145px;
    height: 46px;
    font-size: 18px;
    line-height: 46px;
    text-align: center;
    color: #fff;
    background: #ea5404;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.p4-titlel-1 span {
    display: none;
}

.p4-titlel-1 em {
    display: none;
}

.p4-order-form-1-con {
    border: 1px solid #bbb;
    background: #fff url('../images/r1-orderform-1-bg.jpg') no-repeat center bottom;
    padding: 40px 15%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Contact Form 7 Styles */
.p4-order-form-1-con .wpcf7 {
    margin: 0;
}

.p4-order-form-1-con .wpcf7-form {
    margin: 0;
}

.p4-order-form-1-con .wpcf7 {
    position: relative;
    z-index: 2;
}

.p4-order-form-1-con .wpcf7-form {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

.p4-order-form-1-con .wpcf7-form p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 35px;
    color: #666;
    overflow: hidden;
    position: relative;
    pointer-events: auto;
}

/* Label là element riêng biệt */
.p4-order-form-1-con .wpcf7-form p label {
    display: inline-block;
    color: #666;
    vertical-align: top;
    text-align: right;
    height: 33px;
    line-height: 33px;
    overflow: hidden;
    margin: 0;
    padding-right: 10px;
    font-weight: normal;
    pointer-events: none;
    box-sizing: border-box;
}

.p4-order-form-1-con .wpcf7-form p label br {
    display: none;
}

/* Input wrap nằm bên cạnh label */
.p4-order-form-1-con .wpcf7-form p .wpcf7-form-control-wrap {
    display: inline-block !important;
    width: calc(100% - 130px) !important;
    min-width: 300px;
    max-width: none;
    vertical-align: top;
    margin-left: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.p4-order-form-1-con .wpcf7-form-control-wrap {
    display: inline-block !important;
    width: 73%;
    min-width: 300px;
    vertical-align: top;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 0;
}

.p4-order-form-1-con .wpcf7-form-control {
    width: 100% !important;
    min-width: 200px;
    height: 33px !important;
    min-height: 33px;
    padding: 0 10px !important;
    border: 1px solid #eee !important;
    outline: none;
    font-size: 14px;
    color: #666 !important;
    box-sizing: border-box;
    line-height: 32px;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    background: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.p4-order-form-1-con .wpcf7-form-control:focus {
    border-color: #EA5404;
}

.p4-order-form-1-con textarea.wpcf7-form-control {
    width: 100% !important;
    min-width: 200px;
    height: 102px !important;
    min-height: 102px;
    line-height: 24px;
    border: 1px solid #eee !important;
    outline: none;
    resize: none;
    overflow: auto;
    padding: 10px !important;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    background: #fff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px;
    color: #666 !important;
}

.p4-order-form-1-con textarea.wpcf7-form-control:focus {
    border-color: #EA5404;
}

/* Submit button */
.p4-order-form-1-con .wpcf7-form p:has(input[type="submit"]) {
    text-align: left;
    margin-top: 20px;
    padding-left: 0;
    margin-bottom: 0;
}

/* Fallback for browsers that don't support :has() */
.p4-order-form-1-con .wpcf7-form p:last-child {
    text-align: left;
    margin-top: 20px;
    padding-left: 0;
    margin-bottom: 0;
}

.p4-order-form-1-con input[type="submit"].wpcf7-submit {
    width: 80px !important;
    height: 30px !important;
    border: 0 !important;
    text-align: center;
    margin-right: 30px;
    background: #1c2087 !important;
    color: #fff !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    display: inline-block !important;
    vertical-align: middle;
    line-height: 30px;
    font-weight: normal;
    border-radius: 0;
    box-sizing: border-box;
    outline: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.p4-order-form-1-con input[type="submit"].wpcf7-submit:focus {
    outline: 2px solid #1c2087 !important;
    outline-offset: 2px;
    background: #1c2087 !important;
}

.p4-order-form-1-con input[type="submit"].wpcf7-submit:hover {
    background: #151a6f !important;
    color: #fff !important;
}

.p4-order-form-1-con input[type="submit"].wpcf7-submit:active {
    background: #0f1349 !important;
    color: #fff !important;
}

/* Legacy support for original form structure */
.p4-order-form-1-con .findrow {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p4-order-form-1-con .findrow li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 35px;
    color: #666;
    overflow: hidden;
    position: relative;
}

.p4-order-form-1-con .findrow li label {
    display: inline-block;
    width: 120px;
    color: #666;
    vertical-align: top;
    text-align: right;
    height: 33px;
    line-height: 33px;
    overflow: hidden;
    margin: 0;
    padding-right: 10px;
    font-weight: normal;
}

.p4-order-form-1-con .findrow li label b {
    color: #f00;
    margin-right: 5px;
}

.p4-order-form-1-con .findrow li label .row-hd {
    color: #666;
    font-weight: bold;
}

.p4-order-form-1-con .findrow li .inputs,
.p4-order-form-1-con .findrow li input[type="text"],
.p4-order-form-1-con .findrow li input[type="email"],
.p4-order-form-1-con .findrow li input[type="tel"],
.p4-order-form-1-con .findrow li input[type="number"] {
    width: 73%;
    height: 33px;
    padding: 0 10px;
    border: 1px solid #eee;
    outline: none;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    vertical-align: top;
    margin-right: 10px;
}

.p4-order-form-1-con .findrow li .inputs:focus,
.p4-order-form-1-con .findrow li input[type="text"]:focus,
.p4-order-form-1-con .findrow li input[type="email"]:focus,
.p4-order-form-1-con .findrow li input[type="tel"]:focus,
.p4-order-form-1-con .findrow li input[type="number"]:focus {
    border-color: #EA5404;
}

.p4-order-form-1-con .findrow li textarea {
    width: 73%;
    height: 102px;
    line-height: 24px;
    border: 1px solid #eee;
    outline: none;
    padding: 10px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    vertical-align: top;
}

.p4-order-form-1-con .findrow li textarea:focus {
    border-color: #EA5404;
}

.p4-order-form-1-con .findrow li.p4-order-form-1-t1 {
    width: 100%;
}

.p4-order-form-1-con .findrow li.p4-order-form-1-t3 {
    padding-left: 120px;
    margin-top: 20px;
}

.p4-order-form-1-con .findrow li .p4-order-form-1-b1,
.p4-order-form-1-con .findrow li input[type="submit"],
.p4-order-form-1-con .findrow li button[type="submit"] {
    width: 80px;
    height: 30px;
    border: 0;
    text-align: center;
    margin-right: 30px;
    background: #1c2087;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.p4-order-form-1-con .findrow li .p4-order-form-1-b1:hover,
.p4-order-form-1-con .findrow li input[type="submit"]:hover,
.p4-order-form-1-con .findrow li button[type="submit"]:hover {
    background: #151a6f;
}

.p4-order-form-1-con .findrow li .p4-order-form-1-b1:active,
.p4-order-form-1-con .findrow li input[type="submit"]:active,
.p4-order-form-1-con .findrow li button[type="submit"]:active {
    background: #0f1349;
}

/* Contact Form 7 Validation Messages */
.p4-order-form-1-con .wpcf7-not-valid-tip {
    color: #f00;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    padding-left: 130px;
    clear: both;
}

.p4-order-form-1-con .wpcf7-form-control-wrap {
    position: relative;
}

.p4-order-form-1-con .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: 100%;
    padding-left: 0;
    margin-top: 2px;
}

.p4-order-form-1-con .wpcf7-validation-errors,
.p4-order-form-1-con .wpcf7-mail-sent-ok {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.p4-order-form-1-con .wpcf7-validation-errors {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.p4-order-form-1-con .wpcf7-mail-sent-ok {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.p4-order-form-1-con .wpcf7-spinner {
    margin-left: 10px;
    vertical-align: middle;
}

.p4-order-form-1-con li p.info {
    padding-left: 130px;
    color: #999;
    font-size: 12px;
    margin: 0;
    clear: both;
}

/* Hide hidden fields container */
.p4-order-form-1-con .hidden-fields-container {
    display: none;
}

/* Error message */
.contact-form-error {
    color: #EA5404;
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.clear {
    clear: both;
    height: 0;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1199.98px) {
    .r1-orderform-1 {
        padding: 0 20px;
    }
}

@media (max-width: 991.98px) {
    .gy-nav {
        height: auto;
        padding: 10px 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .gy-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .gy-nav::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    .gy-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 20px;
        min-width: max-content;
    }
    
    .gy-nav li {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .gy-nav li:last-child {
        margin-right: 0;
    }
    
    .gy-nav li a {
        white-space: nowrap;
    }
    
    .p4-order-form-1 {
        padding: 30px 0;
    }
    
    .p4-titlel-1 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .p4-order-form-1-con {
        padding: 0 15px;
    }
}

@media (max-width: 767.98px) {
    .gy-nav {
        height: auto;
        padding: 10px 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .gy-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .gy-nav::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    .gy-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 20px;
        min-width: max-content;
    }
    
    .gy-nav li {
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .gy-nav li:last-child {
        margin-right: 0;
    }
    
    .gy-nav li a {
        white-space: nowrap;
        font-size: 16px;
    }
    
    .r1-orderform-1 {
        padding: 0 15px;
    }
    
    .p4-order-form-1 {
        padding: 20px 0;
    }
    
    .p4-titlel-1 {
        font-size: 22px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .p4-order-form-1-con {
        padding: 0 10px;
    }
    
    .p4-order-form-1-con .findrow li {
        margin-bottom: 20px;
    }
    
    .p4-order-form-1-con .findrow li .inputs,
    .p4-order-form-1-con .findrow li input[type="text"],
    .p4-order-form-1-con .findrow li input[type="email"],
    .p4-order-form-1-con .findrow li input[type="tel"],
    .p4-order-form-1-con .findrow li input[type="number"] {
        height: 42px;
        font-size: 14px;
    }
    
    .p4-order-form-1-con .findrow li textarea {
        min-height: 120px;
        font-size: 14px;
    }
    
    .p4-order-form-1-con .findrow li .p4-order-form-1-b1,
    .p4-order-form-1-con .findrow li input[type="submit"],
    .p4-order-form-1-con .findrow li button[type="submit"] {
        padding: 10px 40px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 575.98px) {
    .p4-titlel-1 {
        font-size: 20px;
    }
    
    .p4-order-form-1-con .findrow li label {
        font-size: 14px;
    }
    
    .p4-order-form-1-con .findrow li .p4-order-form-1-b1,
    .p4-order-form-1-con .findrow li input[type="submit"],
    .p4-order-form-1-con .findrow li button[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
}

