/*
Theme Name: Sama
Theme URI: https://exportaccelerator.com.au
Description: Blank Elementor-ready theme for the Sama Boutique Residences one-pager. All layout and content are built with Elementor; this theme provides a clean, compatible shell (theme locations, enqueueing, core supports).
Author: Export Accelerator
Author URI: https://exportaccelerator.com.au
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sama
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

/* -----------------------------------------------------------------------------
 * Base reset only — Elementor owns all layout and design.
 * -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
 * Priority Access form (Fluent Forms, form #3)
 * Recreates the enquire form design from the Sama HTML project (index.html).
 * -------------------------------------------------------------------------- */

.fluentform_wrapper_3 {
    --sama-teal: #2F8F96;
    --sama-sea: #5F7B72;
    --sama-charcoal: #2D2D2D;
    --sama-muted: #4B4B4B;
    --sama-border: rgba(45, 45, 45, 0.12);
    --sama-error: #c45c4a;
    --sama-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Title + privacy note (Custom HTML elements) */
#fluentform_3 .ff-sama-form-title {
    text-align: center;
    color: var(--sama-teal);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}
#fluentform_3 .ff-sama-privacy {
    font-size: 0.8rem;
    color: var(--sama-muted);
    text-align: center;
    margin: 0;
}

/* Vertical rhythm — HTML form used a 1.5rem column gap */
#fluentform_3 .ff-el-group {
    margin-bottom: 1.5rem;
}
#fluentform_3 .ff-el-group:last-of-type {
    margin-bottom: 0;
}

/* Labels */
#fluentform_3 .ff-el-input--label label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sama-charcoal);
    margin-bottom: 0.5rem;
}
#fluentform_3 .ff-el-is-required.asterisk-right label:after {
    color: var(--sama-error);
    content: ' *';
}

/* Text / email inputs */
#fluentform_3 .ff-el-form-control {
    height: auto;
    padding: 1rem;
    border: 1px solid var(--sama-border);
    border-radius: 4px;
    background: #faf9f6;
    color: var(--sama-charcoal);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: var(--sama-transition);
}
#fluentform_3 .ff-el-form-control::placeholder {
    color: rgba(45, 45, 45, 0.35);
}
#fluentform_3 .ff-el-form-control:focus {
    outline: none;
    border-color: var(--sama-teal);
    background: #ffffff;
    box-shadow: none;
}
#fluentform_3 .ff-el-is-error .ff-el-form-control {
    border-color: var(--sama-error);
}

/* Phone + postcode row — HTML used grid 1fr/1fr with 1.5rem gap */
#fluentform_3 .ff-t-container {
    margin: 0;
    gap: 1.5rem;
}
#fluentform_3 .ff-t-cell {
    padding: 0 !important;
}

/* Radio groups — HTML .radio-box: bordered fieldset with padding */
#fluentform_3 .ff-el-group:has(.ff-el-form-check-radio) .ff-el-input--content {
    border: 1px solid var(--sama-border);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
#fluentform_3 .ff-el-group:has(.ff-el-form-check-radio) .ff-el-input--label label {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
#fluentform_3 .ff-el-group:has(.ff-el-form-check-radio).ff-el-is-error .ff-el-input--content {
    border-color: var(--sama-error);
}
#fluentform_3 .ff-el-form-check {
    margin: 0;
}
#fluentform_3 .ff-el-form-check-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--sama-charcoal);
    cursor: pointer;
    margin: 0;
}
#fluentform_3 .ff-el-form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--sama-teal);
    cursor: pointer;
}

/* Submit button — HTML .btn-submit */
#fluentform_3 .ff_submit_btn_wrapper {
    margin: 0 0 1rem;
}
#fluentform_3 .ff-btn-submit {
    width: 100%;
    height: auto;
    padding: 1.1rem 2rem;
    /* Elementor's generated page CSS sets this button blue with !important,
       so the brand teal has to win the same way. */
    background: var(--sama-teal) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.4;
    transition: var(--sama-transition);
}
#fluentform_3 .ff-btn-submit:hover,
#fluentform_3 .ff-btn-submit:focus {
    background: var(--sama-sea) !important;
    color: #ffffff !important;
}

/* Validation + status text */
#fluentform_3 .error.text-danger {
    color: var(--sama-error);
    font-size: 0.8rem;
}
#fluentform_3 .ff-el-is-error .ff-el-input--label label {
    color: var(--sama-error);
}
.fluentform_wrapper_3 .ff-message-success {
    color: var(--sama-teal);
    font-size: 0.95rem;
    text-align: center;
}

/* Stack phone/postcode on very small screens */
@media (max-width: 480px) {
    #fluentform_3 .ff-t-container {
        flex-direction: column;
        gap: 0;
    }
}
