/* Contact Form 7 - Style Tổng thể */
.wpcf7 {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.wpcf7:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 2px 5px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.wpcf7-form {
    margin: 0;
}

/* Style cho label */
.wpcf7 label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 2px;
}

.wpcf7 label:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1e3f66;
    transition: width 0.3s ease;
}

.wpcf7 .focused label:after {
    width: 30px;
}

/* Style chung cho input, textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"], 
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    color: #2d3748;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Style cho select/dropdown */
.wpcf7 select {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 10px 35px 10px 15px;
    font-size: 15px;
    border: 1px solid #e4e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2d3748;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    text-overflow: initial;
    overflow: visible;
}

/* Style cho options trong select */
.wpcf7 select option {
    padding: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #2d3748;
    white-space: normal;
}

/* Style cho disabled option */
.wpcf7 select option:disabled {
    color: #a0aec0;
    background: #f9fafb;
}

/* Style cho textarea */
.wpcf7 textarea {
    height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* Hiệu ứng hover cho inputs */
.wpcf7 input:hover,
.wpcf7 textarea:hover,
.wpcf7 select:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Hiệu ứng focus cho inputs */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #1e3f66;
    box-shadow: 0 0 0 2px rgba(30,63,102,0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Hiệu ứng focus cho select */
.wpcf7 select:focus {
    border-color: #1e3f66;
    box-shadow: 0 0 0 2px rgba(30,63,102,0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Style cho placeholder */
.wpcf7 ::-webkit-input-placeholder {
    color: #a0aec0;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.wpcf7 ::-moz-placeholder {
    color: #a0aec0;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.wpcf7 :-ms-input-placeholder {
    color: #a0aec0;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.wpcf7 :-moz-placeholder {
    color: #a0aec0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hiệu ứng khi focus vào placeholder */
.wpcf7 input:focus::-webkit-input-placeholder,
.wpcf7 textarea:focus::-webkit-input-placeholder {
    opacity: 0.5;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.wpcf7 input:focus::-moz-placeholder,
.wpcf7 textarea:focus::-moz-placeholder {
    opacity: 0.5;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Style cho nút Submit */
.wpcf7 input[type="submit"] {
    position: relative;
    width: auto;
    min-width: 140px;
    background: linear-gradient(135deg, #2563eb, #1e3f66);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    margin: 25px auto 0;
    text-transform: uppercase;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2), 0 2px 5px rgba(37, 99, 235, 0.1);
    overflow: hidden;
}

.wpcf7 input[type="submit"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transform: scale(0);
    transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb, #153055);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3), 0 3px 8px rgba(37, 99, 235, 0.2);
}

.wpcf7 input[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Hiệu ứng ripple cho nút submit */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Style cho thông báo lỗi */
.wpcf7 .wpcf7-not-valid-tip {
    color: #e53e3e;
    font-size: 13px;
    margin-top: -16px;
    margin-bottom: 12px;
    display: block;
    opacity: 0;
    transform: translateY(-5px);
    animation: fadeInUp 0.3s forwards;
    padding-left: 3px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style cho trường không hợp lệ */
.wpcf7 .wpcf7-not-valid {
    border-color: #e53e3e;
    background-color: rgba(254, 226, 226, 0.1);
    box-shadow: 0 0 0 1px rgba(229, 62, 62, 0.1);
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translateX(-1px);
    }
    20%, 80% {
        transform: translateX(2px);
    }
    30%, 50%, 70% {
        transform: translateX(-2px);
    }
    40%, 60% {
        transform: translateX(1px);
    }
}

/* Style cho thông báo response */
.wpcf7 .wpcf7-response-output {
    margin: 25px 0 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s 0.2s forwards;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    line-height: 1.6;
}

/* Style cho thông báo thành công */
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f0f8f0; /* Màu nền xanh nhạt */
    border: 1px solid #49cc73; /* Viền xanh lá */
    border-left: 4px solid #49cc73; /* Viền bên trái đậm hơn */
    color: #1a1a1a;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.1);
    font-weight: 400;
    position: relative;
    padding-left: 50px; /* Tạo khoảng cách cho icon */
}

/* Thêm biểu tượng tích xanh cho thông báo thành công */
.wpcf7 form.sent .wpcf7-response-output:before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #49cc73; /* Màu nền xanh lá */
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px;
    z-index: 1; /* Đảm bảo icon hiển thị trên cùng */
}

/* Style cho thông báo lỗi */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background: linear-gradient(145deg, #fde8e8, #fff5f5);
    border-color: #e53e3e;
    color: #c53030;
    box-shadow: 0 3px 10px rgba(229, 62, 62, 0.1);
}

/* Style cho icon loading */
.wpcf7 .ajax-loader {
    position: absolute;
    margin-left: 10px;
    transition: all 0.3s ease;
    opacity: 0;
}

.wpcf7 .ajax-loader.is-active {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Radio buttons & Checkboxes */
.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
    margin: 0 1em 0.5em 0;
    display: inline-block;
    transition: all 0.2s ease;
}

.wpcf7-radio input,
.wpcf7-checkbox input {
    margin-right: 6px;
    position: relative;
    top: 1px;
}

/* File upload */
.wpcf7-file {
    border: 2px dashed #e2e8f0;
    background: #f8fafc;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.wpcf7-file:hover,
.wpcf7-file:focus {
    border-color: #cbd5e0;
    background: #f1f5f9;
}

/* Thêm hiệu ứng JavaScript cho label focus */
.wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 25px;
    }
    
    .wpcf7 input[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wpcf7 {
        padding: 20px;
    }
    
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"], 
    .wpcf7 input[type="tel"],
    .wpcf7 input[type="number"],
    .wpcf7 input[type="url"],
    .wpcf7 textarea {
        padding: 10px 12px;
    }
    
    .wpcf7 select {
        padding-right: 35px;
        min-height: 45px;
    }
    
    .wpcf7 label {
        font-size: 14px;
    }

    .wpcf7 input[type="submit"] {
        font-size: 14px;
        padding: 10px 24px;
        width: 100%;
    }
}

/* Fix cho iOS */
@supports (-webkit-touch-callout: none) {
    .wpcf7 select {
        padding-right: 35px;
        min-height: 45px;
        font-size: 16px;
    }
    
    .wpcf7 select option {
        font-size: 16px;
    }
}

/* Fix cho Android */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .wpcf7 select {
        padding-right: 35px;
        background-position: calc(100% - 12px) center;
    }
}

/* Giữ lại các style đã có cho các phần khác */
img {
    loading: eager !important;
}

.header-bg-color {
    /* Thay đổi màu nền */
    background-color: #FFFFFF; 
}

.nav-top-link {
    /* Thay đổi màu chữ của menu */
    color: #000000 !important;
}

/* Thêm class cho ripple effect */
.ripple-effect {
    position: absolute;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    pointer-events: none;
    width: 100px;
    height: 100px;
    transform: scale(0);
    animation: ripple 0.6s linear;
}