/* Genel Form Stili */
.enbarezept-membership-form-wrapper {
    max-width: 700px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Add your custom styles here */

/* Signature Pad Frontend Styles */
.woocommerce-account .form-table {
    width: 100%;
    border: none;
}

.woocommerce-account .form-table th, 
.woocommerce-account .form-table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-account .form-table th {
    width: 25%;
    font-weight: bold;
}

.woocommerce-account #clear-signature.button {
    display: inline-block;
    padding: 8px 16px;
    background: #e0e0e0;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1;
}

.woocommerce-account #clear-signature.button:hover {
    background: #d0d0d0;
}

.woocommerce-account p.description {
    color: #666;
    font-style: italic;
    font-size: 13px;
    display: block; /* Ensure it's visible */
}

/* Adım Göstergesi */
.cml-step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    counter-reset: step;
}
.cml-step {
    text-align: center;
    flex-grow: 1;
    position: relative;
}
.cml-step .step-circle {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #999;
    display: inline-block;
    font-weight: bold;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}
.cml-step .step-title {
    margin-top: 0.5em;
    color: #999;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Adım Çizgisi */
.cml-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #f0f0f0;
    z-index: -1;
    transform: translateX(15px);
}

/* Aktif ve Tamamlanmış Adımlar */
.cml-step.active .step-circle, .cml-step.completed .step-circle {
    background-color: #299d8f;
    border-color: #299d8f;
    color: #fff;
}
.cml-step.active .step-title, .cml-step.completed .step-title {
    color: #333;
}
.cml-step.completed::after {
    background-color: #299d8f;
}

/* Form Parçaları */
.cml-form-part {
    display: none;
}
.cml-form-part.active {
    display: block;
}

/* Form Alanları */
.cml-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}
.cml-form-group {
    padding: 0 10px;
    margin-bottom: 1.5em;
    flex: 1 1 100%;
}
.cml-form-group.cml-col-2 {
    flex-basis: 50%;
}
.cml-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #444;
}
.cml-form-group input[type="text"],
.cml-form-group input[type="email"],
.cml-form-group input[type="password"],
.cml-form-group input[type="date"],
.cml-form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.cml-form-group input:focus {
    border-color: #299d8f;
    outline: none;
}

/* intl-tel-input fix for text overlapping the flag */
.iti--allow-dropdown input#billing_phone {
    padding-left: 58px !important; /* Adjust this value as needed */
}

/* Onay Kutuları */
.cml-consent-group {
    margin-bottom: 1em;
}
.cml-consent-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    font-size: 0.95em;
    color: #555;
}
.cml-consent-group input[type="checkbox"] {
    margin-top: 0.2em;
    margin-right: 0.8em;
}

/* Butonlar */
.cml-navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
    border-top: 1px solid #eee;
    padding-top: 1.5em;
}
.cml-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.cml-btn:active {
    transform: translateY(1px);
}
.cml-btn-prev {
    background-color: #f0f0f0;
    color: #555;
}
.cml-btn-prev:hover {
    background-color: #e0e0e0;
}
.cml-btn-next, .cml-btn-submit {
    background-color: #299d8f;
    color: #fff;
}
.cml-btn-next:hover, .cml-btn-submit:hover {
    background-color: #208478;
}
.cml-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Hata Mesajları */
.cml-error-message {
    color: #d93025;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Hata Mesajları */
.cml-error-message {
    color: #d93025;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Medya Sorguları */
@media (max-width: 600px) {
    .cml-form-group.cml-col-2 {
        flex-basis: 100%;
    }
    .enbarezept-membership-form-wrapper {
        padding: 1em;
    }
}
