
.contact-form {
  --bg-color: #ffffff;
  --text-color: #333333;
  --button-bg: #000000;
  --button-text: #ffffff;
  transition: all 0.3s ease;
}

.color-scheme-yellow {
  --bg-color: #ffff00;
  --text-color: #000000;
  --button-bg: #000000;
  --button-text: #ffff00;
}

.color-scheme-black {
  --bg-color: #000000;
  --text-color: #ffffff;
  --button-bg: #ffff00;
  --button-text: #000000;
}


        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html, body {
            /*font-family: 'linotype-condensed';*/
            font-family: "Univers", Arial, sans-serif;
            line-height: 1.625rem;
            color: #333;
            background-color: #F5F4F4;
            padding: 0 !important;
            margin: 0;
            width: 100% !important;
            height: 100% !important;
            overflow: hidden !important; /* Disable scrollbars */
        }

        .westrac-form input[type="text"],
        .westrac-form input[type="email"],
        .westrac-form input[type="tel"],
        .westrac-form textarea,
        .westrac-form select {
            background-color: #fff !important;
            color: #2d2d2d !important;
            display: block !important;
            width: 100% !important;
            /*font-family: 'linotype-condensed', Arial, sans-serif !important;*/
            font-family: "Univers", Arial, sans-serif;
            border: none;
        }


        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="tel"]:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #000000;
            background-color: #ffffff !important;
        }

        .main-container {
            margin: 0 auto;
            padding: 0px;
            background-color: #F5F4F4;
        }

        /* Form styling */
        .contact-form {
            background-color: #F5F4F4;
            padding: 30px;
        }

        .form-header {
            margin-bottom: 30px;
        }

        .form-header h1 {
            color: #000;
            font-size: 40px;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .form-header p {
            color: #666;
            font-size: 17px;
        }

        /* Layout form */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .form-group {
            margin-bottom: 5px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
            font-size: 17px;
        }

        .required-field:after {
            content: " *";
            color: #e32;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        textarea,
        select {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            font-size: 17px;
            transition: all 0.3s;
        }

        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="tel"]:focus,
        textarea:focus,
        select:focus {
            border-color: #000;
            outline: none;
        }

        textarea {
            background-color: #ffffff;
            min-height: 150px;
            resize: vertical;
            font-family: "Univers", Arial, sans-serif;
        }

        textarea::placeholder {
          font-family: "Univers", Arial, sans-serif;
        }

        textarea::-webkit-input-placeholder {
          font-family: "Univers", Arial, sans-serif;
        }

        textarea:-ms-input-placeholder {
          font-family: "Univers", Arial, sans-serif;
        }

/* font-family: 'linotype-condensed'; 
margin-top: 10px;
*/
        .submit-btn {
            margin: 0;
            border: none;
            font-family: "Univers", Arial, sans-serif;
            background-color: #FFC72C;
            color: #000;
            padding: 12px 20px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1;
            white-space: nowrap;
        }

        .submit-btn:hover {
            background-color: #000;
            color: #fff;
        }

        .result-message {
            margin: 20px 0;
            padding: 15px;
            display: none;
        }

        .success {
            background-color: #dff0d8;
            color: #3c763d;
            display: block;
        }

        .error {
            background-color: #f2dede;
            color: #a94442;
            display: block;
        }

        /* Responsive adjustments */
        /* @media (max-width: 768px) { */
        /*
.main-container {
                padding: 15px 10px;
            }
*/


        @media (max-width: 1024px) {
            .main-container {
                padding: 0px;
            }

            .contact-form {
                padding: 0px 0px;
            }

            .form-header h1 {
                font-size: 26px;
            }

            .form-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .submit-btn {
                margin: 0;
                width: 100%;
                padding: 16px 20px;
                font-size: 14px;
                font-weight: 700;
                letter-spacing: -0.2px;
                line-height: 1.625rem;
                white-space: nowrap;

            }
        }

/*
        @font-face {
            font-family: 'linotype-condensed';
            src: url("https://www.westrac.com.au/assets/theme/fonts/Linotype-UniversLTCYR-57Condensed.woff2") format("woff2"),
                url("https://www.westrac.com.au/assets/theme/fonts/Linotype-UniversLTCYR-57Condensed.woff") format("woff");
        }

        @font-face {
            font-family: 'linotype-cond-bold';
            src: url("https://www.westrac.com.au/assets/theme/fonts/Linotype-UniversLTCYR-67BoldCond.woff2") format("woff2"),
                url("https://www.westrac.com.au/assets/theme/fonts/Linotype-UniversLTCYR-67BoldCond.woff") format("woff");
        }
 */ 



  
  
        .westrac-form-consent {
            margin: 25px 0;
            padding: 0 0px;
        }

        .westrac-form-consent .form-group {
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
        }

        .westrac-form-consent input[type="checkbox"] {
            margin-right: 10px;
            margin-top: 3px;
        }

        .westrac-form-consent label {
            font-size: 17px;
            color: #2d2d2d;
            line-height: 1.625rem;
            font-weight: normal;
            cursor: pointer;
        }

        .westrac-form-footer {
            font-size: 17px;
            color: #666;
            line-height: 1.625rem;
            margin-top: 15px;
        }

        .westrac-form-footer a {
            color: #2d2d2d;
            text-decoration: underline;
        }

        .westrac-form-footer a:hover {
            color: #e31937;
            text-decoration: none;
        }

        @media (max-width: 768px) {
            .westrac-form-consent {
                padding: 0;
            }
        }
      
      
      
        /* Checkbox container */
        .westrac-checkbox-container {
            margin: 25px 0 15px 0;
            padding: 0 0px;
        }

        /* Hide default checkbox */
        .westrac-checkbox {
            position: absolute;
            opacity: 0;
            height: 0;
            width: 0;
        }

        /* Custom checkbox label */
        .westrac-checkbox-label {
            position: relative;
            padding-left: 28px;
            cursor: pointer;
            font-size: 17px;
            color: #2d2d2d;
            line-height: 1.5;
            /*font-family: 'linotype-condensed', Arial, sans-serif;*/
            font-family: "Univers", Arial, sans-serif;
            display: block;
        }

        /* Custom checkbox design */
        .westrac-checkbox-label:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0px;
            width: 18px;
            height: 18px;
            border: 1px solid #2d2d2d;
            background: #fff;
            transition: all 0.2s ease;
        }

        
        .westrac-checkbox:checked+.westrac-checkbox-label:before {
            background-color: #FFC72C;
            /* Màu vàng Westrac */
            border-color: #FFC72C;
        }

        .westrac-checkbox:checked+.westrac-checkbox-label:after {
            content: "";
            position: absolute;
            left: 6px;
            top: 2px;
            width: 6px;
            height: 10px;
            border: solid #2d2d2d;
            /* Màu checkmark đen */
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        /* Hover effect */
        .westrac-checkbox-label:hover:before {
            border-color: #FFC72C;
        }

        /* Focus state */
        .westrac-checkbox:focus+.westrac-checkbox-label:before {}

        /* Responsive */
        @media (max-width: 768px) {
            .westrac-checkbox-container {
                padding: 0;
            }
        }
      
      
      
        .is-invalid {
            border-color: #dc3545 !important;
            background-color: #fff5f5;
        }

        .validate-error-label {
            color: #dc3545;
            font-size: 17px;
            margin-top: 5px;
            display: block;
        }

        /* Highlight required fields */
        .required-field::after {
            content: ' *';
            color: #dc3545;
        }


        /* Loading Spinner */
        .westrac-loader {
            text-align: center;
            padding: 40px 0;
        }

        .westrac-loader .spinner {
            border: 10px solid #f3f3f3;
            border-top: 10px solid #FFCC00;
            /* Westrac red */
            border-radius: 50%;
            width: 80px;
            height: 80px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        /* Success Message */
        .westrac-success {
            text-align: center;
            padding: 30px;
            max-width: 100%;
            margin: 0 auto;
        }

        .westrac-success h1 {
            /*font-family: 'linotype-cond-bold';*/
            font-family: "Univers", Arial, sans-serif;
            color: #333;
            font-size: 32px;
            margin-bottom: 15px;
        }

        .westrac-success p {
            color: #666;
            font-size: 17px;
            line-height: 1.5;
        }

        /* Error Message */
        .westrac-error {
            text-align: center;
            padding: 30px;
            max-width: 100%;
            margin: 0 auto;
        }

        .westrac-error h3 {
            /*font-family: 'linotype-cond-bold';*/
            font-family: "Univers", Arial, sans-serif;
            color: #333;
            font-size: 32px;
            margin-bottom: 15px;
        }

        .westrac-error p {
            color: #666;
            font-size: 17px;
            line-height: 1.5;
        }

        /* Animations */
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }
        .error-container {
            color: red;
        }




.form-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  transition: all 0.3s ease;
  gap: 8px;
  overflow: hidden;
}

#postcode-group {
  transition: width 0.3s ease;
}

#suburb-group {
  transition: width 0.3s ease, opacity 0.3s ease;
}

.postcode-full {
  width: 100%;
}

.postcode-one-third {
  flex: 1;
  min-width: 30%;
}

.suburb-two-thirds {
  flex: 2;
  min-width: 68%;
  opacity: 1;
  display:block;
}

.suburb-hidden {
  width: 0;
  opacity: 0;
  display: none !important;
  margin: 0;
  padding: 0;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

textarea.g-recaptcha-response {
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
