/*
Theme Name: TokanWeb Form
Theme URI: https://tokanweb.com
Author: TokanWeb
Author URI: https://tokanweb.com
Description: A modern, lightweight single-page form theme optimized for tablet display
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tokanweb
*/

@font-face {
    font-family: 'IRANYekanX';
    src: url('IRANYekanX.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --brand-color: #D30E00;
    --text-color: #333333;
    --background-color: #ffffff;
    --input-border: #e0e0e0;
    --input-focus: #f5f5f5;
}

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

body {
    font-family: 'IRANYekanX', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    background-color: #54595F;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    margin: -2rem -2rem 2rem -2rem;
}

.logo-container img {
    max-width: 400px;
    height: auto;
}

/* Gravity Forms Customization */
.gform_wrapper {
    max-width: 100% !important;
}

.gform_wrapper .gfield {
    margin-bottom: 1.5rem !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="number"],
.gform_wrapper textarea {
    width: 100% !important;
    padding: 1rem !important;
    border: 2px solid var(--input-border) !important;
    border-radius: 10px !important;
    font-family: 'IRANYekanX', sans-serif !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper textarea:focus {
    border-color: var(--brand-color) !important;
    background-color: var(--input-focus) !important;
    outline: none !important;
}

.gform_wrapper .gfield_label {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-color) !important;
}

.gform_wrapper .gform_button {
    background-color: var(--brand-color) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'IRANYekanX', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.gform_wrapper .gform_button:hover {
    background-color: #b30c00 !important;
    transform: translateY(-2px) !important;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .logo-container img {
        max-width: 350px;
    }
}
.gform_required_legend{
    display: none;
}

/* Hide unnecessary elements */
.site-header,
.site-footer,
.main-navigation,
.widget-area {
    display: none !important;
}

/* Hide default inputs */
.gfield-choice-input[type="checkbox"],
.gfield-choice-input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    pointer-events: none !important;
}

/* Hide default checkmark and radio circle */
.gfield-choice-input[type="checkbox"]:checked + label:after,
.gfield-choice-input[type="radio"]:checked + label:after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Grid layout for options */
.gfield_radio,
.gfield_checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    width: 100% !important;
}

.gchoice {
    position: relative;
    padding: 0.5rem;
    width: 100% !important;
    display: block !important;
}

/* Custom checkbox and radio styles */
.gfield-choice-input + label {
    position: relative;
    padding: 1rem;
    padding-right: 2.5rem;
    display: block;
    background: #f8f9fa;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: right;
    width: 100% !important;
    margin: 0 !important;
}

/* Custom radio button */
.gfield-choice-input[type="radio"] + label:before {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-border);
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #fff;
    pointer-events: none;
}

.gfield-choice-input[type="radio"]:checked + label:before {
    border-color: var(--brand-color);
    background: var(--brand-color);
    box-shadow: inset 0 0 0 4px #fff;
}

/* Custom checkbox */
.gfield-choice-input[type="checkbox"] + label:before {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    transition: all 0.3s ease;
    background: #fff;
    pointer-events: none;
}

.gfield-choice-input[type="checkbox"]:checked + label:before {
    background: var(--brand-color);
    border-color: var(--brand-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Field container styles */
.ginput_container_radio,
.ginput_container_checkbox {
    width: 100% !important;
}

.gfield_radio,
.gfield_checkbox {
    width: 100% !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .gfield_radio,
    .gfield_checkbox {
        grid-template-columns: 1fr;
    }
} 